Sync to trunk head (r42241)
[reactos.git] / reactos / dll / win32 / user32 / windows / draw.c
index dd73cdb..1efb28b 100644 (file)
@@ -1551,7 +1551,7 @@ FillRect(HDC hDC, CONST RECT *lprc, HBRUSH hbr)
 
     if (hbr <= (HBRUSH)(COLOR_MENUBAR + 1))
     {
-        hbr = GetSysColorBrush((int)hbr - 1);
+        hbr = GetSysColorBrush(PtrToUlong(hbr) - 1);
     }
     if ((prevhbr = SelectObject(hDC, hbr)) == NULL)
     {