diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-18 02:04:03 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-18 02:04:03 +0200 |
commit | 9e0738f6aefb13282437ddcb2e2e888a4d57ff37 (patch) | |
tree | 0723ed9c7e8c2d17f13446a6a8a1755249a8c061 /c | |
parent | 34c9abcf6674fece91c6d2750cd424f32cd5d792 (diff) | |
download | EpisodeBrowser-9e0738f6aefb13282437ddcb2e2e888a4d57ff37.tar.gz |
Fix 26bc4109.
Apparently, = {0} does not zero a structure in C++.
Diffstat (limited to 'c')
-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; |