Dmitry Timoshkov : user32: Handle all kinds of values returned by WIN_GetPtr.

Alexandre Julliard julliard at winehq.org
Wed Oct 29 09:39:17 CDT 2008


Module: wine
Branch: master
Commit: 8f1d058b9d0cbf742d998fa73f4726620351fae9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8f1d058b9d0cbf742d998fa73f4726620351fae9

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Wed Oct 29 17:11:21 2008 +0800

user32: Handle all kinds of values returned by WIN_GetPtr.

---

 dlls/user32/win.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index ddea523..833e07d 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -1231,7 +1231,8 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, LPCWSTR className, UINT flags
 
     /* send the size messages */
 
-    if (!(wndPtr = WIN_GetPtr(hwnd))) return 0;
+    if (!(wndPtr = WIN_GetPtr( hwnd )) ||
+          wndPtr == WND_OTHER_PROCESS || wndPtr == WND_DESKTOP) return 0;
     if (!(wndPtr->flags & WIN_NEED_SIZE))
     {
         rect = wndPtr->rectClient;




More information about the wine-cvs mailing list