diff --git a/win32ss/gdi/ntgdi/palette.c b/win32ss/gdi/ntgdi/palette.c index ec92c28721..c824c73bd1 100644 --- a/win32ss/gdi/ntgdi/palette.c +++ b/win32ss/gdi/ntgdi/palette.c @@ -774,7 +774,7 @@ IntGdiRealizePalette(HDC hDC) for (i=0; iIndexedColors[i], *(LONG*)&ppalDC->IndexedColors[i]); + InterlockedExchange((LONG*)&ppalDC->IndexedColors[i], *(LONG*)&ppalSurf->IndexedColors[i]); } cleanup: