Skip to content

Commit

Permalink
gdi32: Make GetStockObject hotpatchable.
Browse files Browse the repository at this point in the history
Needed for ntlea.
  • Loading branch information
Yuxuan Shui authored and julliard committed Sep 19, 2023
1 parent 9a32665 commit 74027f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/gdi32/objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ HGDIOBJ WINAPI GetCurrentObject( HDC hdc, UINT type )
/***********************************************************************
* GetStockObject (GDI32.@)
*/
HGDIOBJ WINAPI GetStockObject( INT obj )
HGDIOBJ WINAPI DECLSPEC_HOTPATCH GetStockObject( INT obj )
{
if (obj < 0 || obj > STOCK_LAST + 1 || obj == 9) return 0;

Expand Down

0 comments on commit 74027f3

Please sign in to comment.