user - EditWndProc_common - Ignore WM_USER messages which are not
sent from a vdm
Stefan Siebert
stefan.siebert at web.de
Mon Aug 7 10:04:28 CDT 2006
Hello,
this patch fixes a Notes Client crash when building the server console
tab (administration client). After creating a text control for console
commands it sends uncaught WM_USER messages which get interpreted by
Wine as 16Bit messages and crashes badly due to NULL pointers.
Changelog: user/edit.c - EditWndProc_common - Ignore WM_USER messages
which are not sent from a vdm
---
Stefan Siebert
-------------- next part --------------
diff --git a/dlls/user/edit.c b/dlls/user/edit.c
old mode 100644
new mode 100755
index c4f95e4..fd74183
--- a/dlls/user/edit.c
+++ b/dlls/user/edit.c
@@ -439,6 +439,10 @@ static LRESULT WINAPI EditWndProc_common
LRESULT result = 0;
TRACE("hwnd=%p msg=%x (%s) wparam=%x lparam=%lx\n", hwnd, msg, SPY_GetMsgName(msg, hwnd), wParam, lParam);
+
+ /* Ignore WM_USER messages which are not sent from a vdm */
+ if ((msg >= WM_USER) && (!NtCurrentTeb()->Tib.SubSystemTib))
+ return 0;
if (!es && msg != WM_NCCREATE)
return DefWindowProcT(hwnd, msg, wParam, lParam, unicode);
More information about the wine-patches
mailing list