From 4e2f4a9cc9a29a2a6b024489c4d9aaf6c9acc303 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard <julliard@winehq.org> Date: Thu, 30 Nov 2000 20:36:41 +0000 Subject: [PATCH] Check for NULL handle before calling HeapValidate. --- windows/winproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/winproc.c b/windows/winproc.c index 32ca4ac9cb2..e74f34b3f8c 100644 --- a/windows/winproc.c +++ b/windows/winproc.c @@ -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 */ -- GitLab