Hi Daniel,
On 7/21/21 1:53 AM, Daniel Lehman wrote:
diff --git a/dlls/gdi32/gdiobj.c b/dlls/gdi32/gdiobj.c index 9059f817636..f56b8891d84 100644 --- a/dlls/gdi32/gdiobj.c +++ b/dlls/gdi32/gdiobj.c @@ -916,6 +916,7 @@ BOOL WINAPI NtGdiDeleteObjectApp( HGDIOBJ obj ) return TRUE; }
entry->UserPointer = 0; obj = entry_to_handle( entry ); /* make it a full handle */
hdcs_head = header->hdcs;
The idea is that NtGdiDeleteClientObj should fail for the second attempt to delete metafiles. Looking at why it's not failing, I think we should just call free_gdi_handle there. What do you think about the attached fix?
Thanks,
Jacek
I think we should just call free_gdi_handle there. What do you think about the attached fix?
yeah, that works for me
thanks daniel