Fix SYSCOLOR_MakeObjectSystem

Rein Klazes wijn at wanadoo.nl
Mon Apr 18 09:52:34 CDT 2005


Hi,

Bug caused by a recent change in the GDIOBJHDR struct.

Changelog:

windows	: syscolor.c

Fix addressing the magic GDIOBJHDR field in SYSCOLOR_MakeObjectSystem.

Rein.
-------------- next part --------------
--- wine/windows/syscolor.c	2005-04-14 10:52:16.000000000 +0200
+++ mywine/windows/syscolor.c	2005-04-18 16:43:23.000000000 +0200
@@ -109,9 +109,9 @@ static void SYSCOLOR_MakeObjectSystem( H
 
         /* 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 );
     }
 }


More information about the wine-patches mailing list