diff options
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |