Commit 67cbdfb5 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Don't print CreateWindow warning for HWND_MESSAGE windows.

parent c94763b4
......@@ -320,8 +320,10 @@ static BOOL CDECL nulldrv_CreateDesktopWindow( HWND hwnd )
static BOOL CDECL nulldrv_CreateWindow( HWND hwnd )
{
static int warned;
if (warned++)
return FALSE;
/* HWND_MESSAGE windows don't need a graphics driver */
if (GetAncestor( hwnd, GA_PARENT ) == get_user_thread_info()->msg_window) return TRUE;
if (warned++) return FALSE;
MESSAGE( "Application tried to create a window, but no driver could be loaded.\n");
switch (driver_load_error)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment