Alexandre Julliard : user32: Don' t print a warning when creating the HWND_MESSAGE parent window.
Alexandre Julliard
julliard at winehq.org
Tue Apr 2 13:38:36 CDT 2013
Module: wine
Branch: master
Commit: 59c0c5fb2d53c1bf84f86e0d08a5664a5aaf9612
URL: http://source.winehq.org/git/wine.git/?a=commit;h=59c0c5fb2d53c1bf84f86e0d08a5664a5aaf9612
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Apr 2 12:46:39 2013 +0200
user32: Don't print a warning when creating the HWND_MESSAGE parent window.
---
dlls/user32/driver.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/driver.c b/dlls/user32/driver.c
index 1c12134..8f02e71 100644
--- a/dlls/user32/driver.c
+++ b/dlls/user32/driver.c
@@ -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");
More information about the wine-cvs
mailing list