From a01e6652df4e4bb66ed237f8fcd7d8a91d289c81 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 18 Jan 2020 10:46:25 +0100 Subject: [PATCH] Replace ZeroMemory with memset --- gfx/common/win32_common.c | 10 +++++----- retroarch.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gfx/common/win32_common.c b/gfx/common/win32_common.c index f828f4cb45..25a9b2a64c 100644 --- a/gfx/common/win32_common.c +++ b/gfx/common/win32_common.c @@ -203,7 +203,7 @@ typedef LONG (WINAPI *GETDISPLAYCONFIGBUFFERSIZES)(UINT32, UINT32*, UINT32*); static bool g_win32_resized = false; bool g_win32_restore_desktop = false; static bool doubleclick_on_titlebar = false; -static bool g_taskbar_is_created = false; +static bool taskbar_is_created = false; bool g_win32_inited = false; static bool g_win32_quit = false; @@ -273,7 +273,7 @@ static HMONITOR win32_monitor_all[MAX_MONITORS]; bool win32_taskbar_is_created(void) { - return g_taskbar_is_created; + return taskbar_is_created; } bool doubleclick_on_titlebar_pressed(void) @@ -1006,7 +1006,7 @@ LRESULT CALLBACK WndProcD3D(HWND hwnd, UINT message, #if _WIN32_WINNT >= 0x0500 /* 2K */ if (g_taskbar_message && message == g_taskbar_message) - g_taskbar_is_created = true; + taskbar_is_created = true; #endif #ifdef HAVE_DINPUT @@ -1063,7 +1063,7 @@ LRESULT CALLBACK WndProcGL(HWND hwnd, UINT message, #if _WIN32_WINNT >= 0x0500 /* 2K */ if (g_taskbar_message && message == g_taskbar_message) - g_taskbar_is_created = true; + taskbar_is_created = true; #endif #ifdef HAVE_DINPUT @@ -1149,7 +1149,7 @@ LRESULT CALLBACK WndProcGDI(HWND hwnd, UINT message, #if _WIN32_WINNT >= 0x0500 /* 2K */ if (g_taskbar_message && message == g_taskbar_message) - g_taskbar_is_created = true; + taskbar_is_created = true; #endif #ifdef HAVE_DINPUT diff --git a/retroarch.c b/retroarch.c index bc98ec6d2c..f08b4c5630 100644 --- a/retroarch.c +++ b/retroarch.c @@ -29665,9 +29665,9 @@ static bool terminate_win32_process(PROCESS_INFORMATION pi) static bool create_win32_process(char* cmd) { STARTUPINFO si; - ZeroMemory(&si, sizeof(si)); + memset(&si, 0, sizeof(si)); si.cb = sizeof(si); - ZeroMemory(&pi, sizeof(pi)); + memset(&pi, 0, sizeof(pi)); if (!CreateProcess(NULL, cmd, NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, NULL, &si, &pi))