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

This commit is contained in:
Michael Stefaniuc 2010-05-20 01:16:55 +02:00 committed by Alexandre Julliard
parent 9dc835c2bc
commit 629a0b8057
1 changed files with 1 additions and 1 deletions

View File

@ -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);