mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 18:34:34 +00:00
ISO C90 - Split variable initialisation and declaration
This commit is contained in:
parent
f1ee946007
commit
6404b1bba4
@ -336,11 +336,16 @@ static char * GetAccurateMonitorName(const WCHAR *deviceName)
|
||||
if(loadWin7MonitorPointers(&dllPointers) == 0)
|
||||
return NULL;
|
||||
|
||||
DISPLAYCONFIG_PATH_INFO *paths = NULL;
|
||||
DISPLAYCONFIG_MODE_INFO *modes = NULL;
|
||||
char *retval = NULL;
|
||||
UINT32 pathCount = 0;
|
||||
UINT32 modeCount = 0;
|
||||
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;
|
||||
|
||||
@ -429,7 +434,8 @@ static BOOL CALLBACK monitorCallback(HMONITOR handle,
|
||||
if (wcscmp(mi.szDevice, monitor->win32.adapterName) == 0)
|
||||
{
|
||||
monitor->win32.handle = handle;
|
||||
char *possiblyMoreAccurateMonitorName = GetAccurateMonitorName(mi.szDevice);
|
||||
char *possiblyMoreAccurateMonitorName;
|
||||
possiblyMoreAccurateMonitorName = GetAccurateMonitorName(mi.szDevice);
|
||||
if(possiblyMoreAccurateMonitorName != NULL)
|
||||
{
|
||||
strncpy(monitor->name, possiblyMoreAccurateMonitorName, sizeof(monitor->name) - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user