Louis Lenders : user32: Don'
t crash if a WM_NCCREATE message is sent with lParam=0.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Feb 8 06:20:18 CST 2007
Module: wine
Branch: master
Commit: 0679dee775fc691a0e6d3272e98027cacd73ea1c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0679dee775fc691a0e6d3272e98027cacd73ea1c
Author: Louis Lenders <xerox_xerox2000 at yahoo.co.uk>
Date: Wed Feb 7 19:57:55 2007 +0000
user32: Don't crash if a WM_NCCREATE message is sent with lParam=0.
---
dlls/user32/defwnd.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c
index 06c10b2..d9af35c 100644
--- a/dlls/user32/defwnd.c
+++ b/dlls/user32/defwnd.c
@@ -772,6 +772,7 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd
switch(msg)
{
case WM_NCCREATE:
+ if (lParam)
{
CREATESTRUCTA *cs = (CREATESTRUCTA *)lParam;
/* check for string, as static icons, bitmaps (SS_ICON, SS_BITMAP)
@@ -930,6 +931,7 @@ LRESULT WINAPI DefWindowProcW(
switch(msg)
{
case WM_NCCREATE:
+ if (lParam)
{
CREATESTRUCTW *cs = (CREATESTRUCTW *)lParam;
/* check for string, as static icons, bitmaps (SS_ICON, SS_BITMAP)
More information about the wine-cvs
mailing list