diff --git a/win32ss/gdi/ntgdi/palette.c b/win32ss/gdi/ntgdi/palette.c index ec92c28721..dbcb16bdf8 100644 --- a/win32ss/gdi/ntgdi/palette.c +++ b/win32ss/gdi/ntgdi/palette.c @@ -772,9 +772,12 @@ IntGdiRealizePalette(HDC hDC) // FIXME: Should we resize ppalSurf if it's too small? realize = (ppalDC->NumColors < ppalSurf->NumColors) ? ppalDC->NumColors : ppalSurf->NumColors; - for (i=0; iIndexedColors[i], *(LONG*)&ppalDC->IndexedColors[i]); + for (i=0; iIndexedColors[i], *(LONG*)&ppalDC->IndexedColors[i]); + } } cleanup: