ISO C90 - Mixed declaration and code

This commit is contained in:
Scr3amer 2023-04-01 17:22:08 -04:00
parent 648bf7a5fb
commit c87d0ea52b
1 changed files with 8 additions and 5 deletions

View File

@ -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);