Author: tkreuzer
Date: Tue Mar 4 00:01:28 2008
New Revision: 32551
URL:
http://svn.reactos.org/svn/reactos?rev=3D32551&view=3Drev
Log:
fix a wrong typecast
Modified:
trunk/reactos/subsystems/win32/win32k/objects/palobj.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/palobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win3=
2k/objects/palobj.c?rev=3D32551&r1=3D32550&r2=3D32551&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/subsystems/win32/win32k/objects/palobj.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/palobj.c Tue Mar 4 00:01=
:28 2008
@@ -233,7 +233,7 @@
int *mapping;
HPALETTE hSysPal =3D NtGdiGetStockObject(DEFAULT_PALETTE);
PPALGDI pSysPal =3D PALETTE_LockPalette(hSysPal);
- PPALGDI palGDI =3D (PPALGDI) palPtr;
+ PPALGDI palGDI =3D CONTAINING_RECORD(palPtr,PALGDI,PalObj);
/* FIXME - handle pSysPal =3D=3D NULL!!!!!!! */
=
COLOR_sysPal =3D pSysPal->IndexedColors;