Check for NULL handle before calling HeapValidate.

This commit is contained in:
Alexandre Julliard 2000-11-30 20:36:41 +00:00
parent d48372c12a
commit 4e2f4a9cc9
1 changed files with 1 additions and 1 deletions

View File

@ -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 */