ISO C90 - Mixed declaration and code.

This commit is contained in:
Scr3amer 2023-04-01 17:19:05 -04:00
parent 6404b1bba4
commit 648bf7a5fb

View File

@ -425,6 +425,8 @@ static BOOL CALLBACK monitorCallback(HMONITOR handle,
LPARAM data) LPARAM data)
{ {
MONITORINFOEXW mi; MONITORINFOEXW mi;
char *possiblyMoreAccurateMonitorName = NULL;
ZeroMemory(&mi, sizeof(mi)); ZeroMemory(&mi, sizeof(mi));
mi.cbSize = sizeof(mi); mi.cbSize = sizeof(mi);
@ -434,7 +436,6 @@ static BOOL CALLBACK monitorCallback(HMONITOR handle,
if (wcscmp(mi.szDevice, monitor->win32.adapterName) == 0) if (wcscmp(mi.szDevice, monitor->win32.adapterName) == 0)
{ {
monitor->win32.handle = handle; monitor->win32.handle = handle;
char *possiblyMoreAccurateMonitorName;
possiblyMoreAccurateMonitorName = GetAccurateMonitorName(mi.szDevice); possiblyMoreAccurateMonitorName = GetAccurateMonitorName(mi.szDevice);
if(possiblyMoreAccurateMonitorName != NULL) if(possiblyMoreAccurateMonitorName != NULL)
{ {