Re: localspl: Implement InitializePrintMonitor
12 Oct
2006
12 Oct
'06
8:09 a.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
7092
Age (days ago)
7092
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard