Fix addressing the magic GDIOBJHDR field in

SYSCOLOR_MakeObjectSystem.
This commit is contained in:
Rein Klazes 2005-04-18 15:37:32 +00:00 committed by Alexandre Julliard
parent 102121993a
commit e55032f1b0
1 changed files with 2 additions and 2 deletions

View File

@ -109,9 +109,9 @@ static void SYSCOLOR_MakeObjectSystem( HGDIOBJ16 handle, BOOL set)
/* touch the "system" bit of the wMagic field of a GDIOBJHDR */ /* touch the "system" bit of the wMagic field of a GDIOBJHDR */
if (set) if (set)
*(ptr+1) &= ~OBJECT_NOSYSTEM; *ptr &= ~OBJECT_NOSYSTEM;
else else
*(ptr+1) |= OBJECT_NOSYSTEM; *ptr |= OBJECT_NOSYSTEM;
LOCAL_Unlock( heap_sel, handle ); LOCAL_Unlock( heap_sel, handle );
} }
} }