Alexandre Julliard : gdi32: Pass the full DC handle to the hook in DeleteDC.
Alexandre Julliard
julliard at winehq.org
Mon Apr 14 14:18:55 CDT 2014
Module: wine
Branch: master
Commit: 955676bc05aa59315ffc1daf8b1b446716089d59
URL: http://source.winehq.org/git/wine.git/?a=commit;h=955676bc05aa59315ffc1daf8b1b446716089d59
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Apr 14 09:37:52 2014 +0200
gdi32: Pass the full DC handle to the hook in DeleteDC.
---
dlls/gdi32/dc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c
index 9500de2..5146f5b 100644
--- a/dlls/gdi32/dc.c
+++ b/dlls/gdi32/dc.c
@@ -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;
More information about the wine-cvs
mailing list