summaryrefslogtreecommitdiff
path: root/demos/cube.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/cube.cpp')
-rw-r--r--demos/cube.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/demos/cube.cpp b/demos/cube.cpp
index 011c456f..082ab4d0 100644
--- a/demos/cube.cpp
+++ b/demos/cube.cpp
@@ -2678,6 +2678,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine,
int argc;
char **argv;
+ // Ensure wParam is initialized.
+ msg.wParam = 0;
+
// Use the CommandLine functions to get the command line arguments.
// Unfortunately, Microsoft outputs
// this information as wide characters for Unicode, and we simply want the