Author: jimtabor
Date: Sat Nov 29 05:31:40 2008
New Revision: 37723
URL:
http://svn.reactos.org/svn/reactos?rev=37723&view=rev
Log:
- Fix GetSystemPaletteEntries.
Modified:
trunk/reactos/dll/win32/gdi32/objects/palette.c
Modified: trunk/reactos/dll/win32/gdi32/objects/palette.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/pa…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/palette.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/palette.c [iso-8859-1] Sat Nov 29 05:31:40 2008
@@ -98,7 +98,8 @@
if (ppe)
{
RtlZeroMemory( &ippe, sizeof(ippe) );
- RtlCopyMemory( &ippe, &sys_pal_template, sizeof(sys_pal_template) );
+ RtlCopyMemory( &ippe, &sys_pal_template, 10 * sizeof(PALETTEENTRY) );
+ RtlCopyMemory( &ippe + 246 , &sys_pal_template + 10 , 10 *
sizeof(PALETTEENTRY) );
if (iStartIndex < 256)
{