From 9e0738f6aefb13282437ddcb2e2e888a4d57ff37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 18 Jul 2022 02:04:03 +0200 Subject: Fix 26bc4109. Apparently, = {0} does not zero a structure in C++. --- c/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'c/main.cpp') 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; -- cgit v1.2.3