From c87d0ea52bfcebd6226849aa06d5d5290e26d310 Mon Sep 17 00:00:00 2001 From: Scr3amer Date: Sat, 1 Apr 2023 17:22:08 -0400 Subject: [PATCH] ISO C90 - Mixed declaration and code --- src/win32_monitor.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/win32_monitor.c b/src/win32_monitor.c index aa242837..48af698f 100644 --- a/src/win32_monitor.c +++ b/src/win32_monitor.c @@ -337,17 +337,20 @@ static char * GetAccurateMonitorName(const WCHAR *deviceName) return NULL; DISPLAYCONFIG_PATH_INFO *paths; - paths = NULL; DISPLAYCONFIG_MODE_INFO *modes; - modes = NULL; char *retval; - retval = NULL; UINT32 pathCount; - pathCount = 0; UINT32 modeCount; - modeCount = 0; UINT32 i; LONG rc; + + paths = NULL; + modes = NULL; + retval = NULL; + pathCount = 0; + modeCount = 0; + int i = 0; + rc = 0; do { rc = dllPointers.m_GetDisplayConfigBufferSizes(QDC_ONLY_ACTIVE_PATHS, &pathCount, &modeCount);