gdi32: Add get_any_obj_ptr() to retrieve the ptr and type of a GDI handle.
commitfc2d3109494d294af7cd9e2a018b69551a8bea0f
authorHuw Davies <huw@codeweavers.com>
Fri, 8 Jul 2016 11:57:14 +0000 (8 12:57 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 8 Jul 2016 14:07:22 +0000 (8 23:07 +0900)
tree5b3a79d81b73eca8c6faa15b82c898dad2ff3305
parentb0664560d412dc8db6e7b54fbc77b0c7586caf07
gdi32: Add get_any_obj_ptr() to retrieve the ptr and type of a GDI handle.

This enables get_dc_obj() to check the type without calling GetObjectType()
and thus it saves additional calls to Enter/LeaveCriticalSection().

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/gdi32/dc.c
dlls/gdi32/gdi_private.h
dlls/gdi32/gdiobj.c
dlls/gdi32/pen.c