user32: Handle all kinds of values returned by WIN_GetPtr.
Dmitry Timoshkov
dmitry at codeweavers.com
Wed Oct 29 04:11:21 CDT 2008
The application installer in the bug 15829 does everything in WM_CREATE
message handler including DestroyWindow(), so after WM_CREATE WIN_GetPtr()
returns WND_OTHER_PROCESS.
---
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;
--
1.6.0.3
More information about the wine-patches
mailing list