gdi32: Pass the full DC handle to the hook in DeleteDC.

This commit is contained in:
Alexandre Julliard 2014-04-14 09:37:52 +02:00
parent d8ca8c275d
commit 955676bc05
1 changed files with 1 additions and 1 deletions

View File

@ -807,7 +807,7 @@ BOOL WINAPI DeleteDC( HDC hdc )
}
/* Call hook procedure to check whether is it OK to delete this DC */
if (dc->hookProc && !dc->hookProc( hdc, DCHC_DELETEDC, dc->dwHookData, 0 ))
if (dc->hookProc && !dc->hookProc( dc->hSelf, DCHC_DELETEDC, dc->dwHookData, 0 ))
{
release_dc_ptr( dc );
return TRUE;