diff --git a/reactos/subsys/win32k/objects/bitmaps.c b/reactos/subsys/win32k/objects/bitmaps.c index ce69a5fdf39..42255ef1f8d 100644 --- a/reactos/subsys/win32k/objects/bitmaps.c +++ b/reactos/subsys/win32k/objects/bitmaps.c @@ -1022,10 +1022,9 @@ NtGdiSetPixel( INT Y, COLORREF Color) { - COLORREF cr = NtGdiGetPixel(hDC,X,Y); - if(cr != CLR_INVALID && NtGdiSetPixelV(hDC,X,Y,Color)) + if (NtGdiSetPixelV(hDC,X,Y,Color)) { - return(cr); + return NtGdiGetPixel(hDC,X,Y); } return ((COLORREF) -1); }