Commit 955676bc authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent d8ca8c27
...@@ -807,7 +807,7 @@ BOOL WINAPI DeleteDC( HDC hdc ) ...@@ -807,7 +807,7 @@ BOOL WINAPI DeleteDC( HDC hdc )
} }
/* Call hook procedure to check whether is it OK to delete this DC */ /* 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 ); release_dc_ptr( dc );
return TRUE; return TRUE;
......
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