Commit 808d1818 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

gdi32: Use free_gdi_handle directly for NtGdiDeleteClientObj.

parent b49ffc57
......@@ -971,9 +971,12 @@ HANDLE WINAPI NtGdiCreateClientObj( ULONG type )
/***********************************************************************
* NtGdiDeleteClientObj (win32u.@)
*/
BOOL WINAPI NtGdiDeleteClientObj( HGDIOBJ obj )
BOOL WINAPI NtGdiDeleteClientObj( HGDIOBJ handle )
{
return NtGdiDeleteObjectApp( obj );
void *obj;
if (!(obj = free_gdi_handle( handle ))) return FALSE;
HeapFree( GetProcessHeap(), 0, obj );
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