Commit 733145f7 authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Handle proc == NULL in THUNK_SetDCHook correctly.

parent adfeec96
......@@ -535,7 +535,9 @@ BOOL16 WINAPI THUNK_SetDCHook( HDC16 hdc, FARPROC16 proc, DWORD dwHookData )
defDCHookProc = (FARPROC16)-1;
}
if (proc != defDCHookProc)
if (!proc)
thunk = NULL;
else if (proc != defDCHookProc)
{
thunk = THUNK_Alloc( proc, (RELAY)CallTo16_word_wwll );
if (!thunk) return FALSE;
......
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