Skip to content
Snippets Groups Projects
Commit c401270d authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Fixed GDI heap selector handling broken by previous change.

parent 0d3b4906
No related merge requests found
......@@ -125,10 +125,11 @@ static HPEN SysColorPens[NUM_SYS_COLORS];
*/
static void SYSCOLOR_MakeObjectSystem( HGDIOBJ handle, BOOL set)
{
WORD heap_sel;
static WORD heap_sel = 0;
LPWORD ptr;
if ((heap_sel = GetModuleHandle16( "gdi" )))
if (!heap_sel) heap_sel = LoadLibrary16( "gdi" );
if (heap_sel >= 32)
{
ptr = (LPWORD)LOCAL_Lock(heap_sel, handle);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment