From e55032f1b081423173938926d5346b9f9f532e26 Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Mon, 18 Apr 2005 15:37:32 +0000 Subject: [PATCH] Fix addressing the magic GDIOBJHDR field in SYSCOLOR_MakeObjectSystem. --- windows/syscolor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/syscolor.c b/windows/syscolor.c index cf7cf389c89..9798e9e904f 100644 --- a/windows/syscolor.c +++ b/windows/syscolor.c @@ -109,9 +109,9 @@ static void SYSCOLOR_MakeObjectSystem( HGDIOBJ16 handle, BOOL set) /* touch the "system" bit of the wMagic field of a GDIOBJHDR */ if (set) - *(ptr+1) &= ~OBJECT_NOSYSTEM; + *ptr &= ~OBJECT_NOSYSTEM; else - *(ptr+1) |= OBJECT_NOSYSTEM; + *ptr |= OBJECT_NOSYSTEM; LOCAL_Unlock( heap_sel, handle ); } }