user32: Don't print a warning when creating the HWND_MESSAGE parent window.

This commit is contained in:
Alexandre Julliard 2013-04-02 12:46:39 +02:00
parent 2f48b12c57
commit 59c0c5fb2d
1 changed files with 2 additions and 1 deletions

View File

@ -299,9 +299,10 @@ static BOOL CDECL nulldrv_CreateDesktopWindow( HWND hwnd )
static BOOL CDECL nulldrv_CreateWindow( HWND hwnd )
{
static int warned;
HWND parent = GetAncestor( hwnd, GA_PARENT );
/* HWND_MESSAGE windows don't need a graphics driver */
if (GetAncestor( hwnd, GA_PARENT ) == get_user_thread_info()->msg_window) return TRUE;
if (!parent || 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");