aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-18 02:04:03 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-18 02:04:03 +0200
commit9e0738f6aefb13282437ddcb2e2e888a4d57ff37 (patch)
tree0723ed9c7e8c2d17f13446a6a8a1755249a8c061
parent34c9abcf6674fece91c6d2750cd424f32cd5d792 (diff)
downloadEpisodeBrowser-9e0738f6aefb13282437ddcb2e2e888a4d57ff37.tar.gz
Fix 26bc4109.
Apparently, = {0} does not zero a structure in C++.
-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;