From 8fe887fe0095936390dd46dcb0136362d3f0a0fc Mon Sep 17 00:00:00 2001 From: Scr3amer Date: Sat, 1 Apr 2023 17:29:06 -0400 Subject: [PATCH] ISO C90 --- src/win32_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32_monitor.c b/src/win32_monitor.c index 8679402b..b351f543 100644 --- a/src/win32_monitor.c +++ b/src/win32_monitor.c @@ -332,6 +332,7 @@ BOOL loadWin7MonitorPointers(AccurateMonitorNameRequiredData *io_ptrs) // If the returned pointer is valid (not NULL) the caller of this function is in charge of freeing the memory when he is done. static char * GetAccurateMonitorName(const WCHAR *deviceName) { + AccurateMonitorNameRequiredData dllPointers; DISPLAYCONFIG_PATH_INFO *paths; DISPLAYCONFIG_MODE_INFO *modes; char *retval; @@ -348,7 +349,6 @@ static char * GetAccurateMonitorName(const WCHAR *deviceName) i = 0; rc = 0; - AccurateMonitorNameRequiredData dllPointers; if(loadWin7MonitorPointers(&dllPointers) == 0) return NULL;