localspl: Implement InitializePrintMonitor

Alexandre Julliard julliard at winehq.org
Thu Oct 12 08:09:29 CDT 2006


Detlef Riekenberg <wine.dev at 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 at winehq.org



More information about the wine-devel mailing list