Michael Stefaniuc : user32: Avoid a potential NULL pointer dereference in a TRACE.

Alexandre Julliard julliard at winehq.org
Thu May 20 11:02:58 CDT 2010


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu May 20 01:16:55 2010 +0200

user32: Avoid a potential NULL pointer dereference in a TRACE.

---

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

diff --git a/dlls/user32/dde_server.c b/dlls/user32/dde_server.c
index 3e44e6a..2dc8ae8 100644
--- a/dlls/user32/dde_server.c
+++ b/dlls/user32/dde_server.c
@@ -392,8 +392,8 @@ static LRESULT CALLBACK WDML_ServerNameProc(HWND hwndServer, UINT iMsg, WPARAM w
 	hwndClient = (HWND)wParam;
 
 	pInstance = WDML_GetInstanceFromWnd(hwndServer);
-	TRACE("idInst=%d, threadID=0x%x\n", pInstance->instanceID, GetCurrentThreadId());
 	if (!pInstance) return 0;
+	TRACE("idInst=%d, threadID=0x%x\n", pInstance->instanceID, GetCurrentThreadId());
 
 	/* don't free DDEParams, since this is a broadcast */
 	UnpackDDElParam(WM_DDE_INITIATE, lParam, &uiLo, &uiHi);




More information about the wine-cvs mailing list