mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 18:34:34 +00:00
ISO C90 again
This commit is contained in:
parent
ec5fbcd07d
commit
ffae283e41
@ -332,10 +332,6 @@ 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;
|
||||
if(loadWin7MonitorPointers(&dllPointers) == 0)
|
||||
return NULL;
|
||||
|
||||
DISPLAYCONFIG_PATH_INFO *paths;
|
||||
DISPLAYCONFIG_MODE_INFO *modes;
|
||||
char *retval;
|
||||
@ -352,6 +348,10 @@ static char * GetAccurateMonitorName(const WCHAR *deviceName)
|
||||
i = 0;
|
||||
rc = 0;
|
||||
|
||||
AccurateMonitorNameRequiredData dllPointers;
|
||||
if(loadWin7MonitorPointers(&dllPointers) == 0)
|
||||
return NULL;
|
||||
|
||||
do {
|
||||
rc = dllPointers.m_GetDisplayConfigBufferSizes(QDC_ONLY_ACTIVE_PATHS, &pathCount, &modeCount);
|
||||
if (rc != ERROR_SUCCESS) {
|
||||
|
Loading…
Reference in New Issue
Block a user