aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--c/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 6a172e5..3e2c7e7 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -79,7 +79,8 @@ int WINAPI WinMain(const HINSTANCE hInstance, const HINSTANCE, char* const, cons
g_hPopupMenu = LoadMenu(NULL, MAKEINTRESOURCE(IDR_POPUPMENU));
g_hPopupMenu = GetSubMenu(g_hPopupMenu, 0);
- WNDCLASSEX wc = {0};
+ WNDCLASSEX wc;
+ memset(&wc, 0, sizeof(WNDCLASSEX));
wc.cbSize = sizeof(WNDCLASSEX);
wc.lpfnWndProc = WndProc;
wc.hInstance = hInstance;