Detlef Riekenberg wine.dev@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...