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

This commit is contained in:
Alexandre Julliard 2009-10-23 12:23:51 +02:00
parent c94763b420
commit 67cbdfb575

View File

@ -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)