Commit 4e2f4a9c authored by Alexandre Julliard's avatar Alexandre Julliard

Check for NULL handle before calling HeapValidate.

parent d48372c1
......@@ -260,7 +260,7 @@ static WINDOWPROC *WINPROC_GetPtr( WNDPROC16 handle )
/* Check for a linear pointer */
if (HeapValidate( WinProcHeap, 0, (LPVOID)handle ))
if (handle && HeapValidate( WinProcHeap, 0, (LPVOID)handle ))
{
ptr = (BYTE *)handle;
/* First check if it is the jmp address */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment