Skip to content
Snippets Groups Projects
Commit 4e2f4a9c authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Check for NULL handle before calling HeapValidate.

parent d48372c1
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment