12 Oct
2006
12 Oct
'06
1:09 p.m.
Detlef Riekenberg <wine.dev(a)web.de> writes:
+BOOL WINAPI localmon_create_globals(void) +{ + if (g_monitorex == NULL) { + g_monitorex = spl_alloc_zero(sizeof(MONITOREX)); + if (g_monitorex == NULL) return FALSE; + + g_monitorex->dwMonitorSize = sizeof(MONITOREX) - sizeof(DWORD); + } + return TRUE;
It seems to me a static variable would work just as well, and save a whole lot of trouble... -- Alexandre Julliard julliard(a)winehq.org