Commit 58d1981f authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Avoid pointer truncation in SetSysColorsTemp.

parent d9822623
...@@ -2975,7 +2975,7 @@ BOOL WINAPI SetSysColors( INT nChanges, const INT *lpSysColor, ...@@ -2975,7 +2975,7 @@ BOOL WINAPI SetSysColors( INT nChanges, const INT *lpSysColor,
* *
* I'm not sure whether this implementation is 100% correct. [AM] * I'm not sure whether this implementation is 100% correct. [AM]
*/ */
DWORD WINAPI SetSysColorsTemp( const COLORREF *pPens, const HBRUSH *pBrushes, DWORD n) DWORD_PTR WINAPI SetSysColorsTemp( const COLORREF *pPens, const HBRUSH *pBrushes, DWORD_PTR n)
{ {
DWORD i; DWORD i;
...@@ -2994,7 +2994,7 @@ DWORD WINAPI SetSysColorsTemp( const COLORREF *pPens, const HBRUSH *pBrushes, DW ...@@ -2994,7 +2994,7 @@ DWORD WINAPI SetSysColorsTemp( const COLORREF *pPens, const HBRUSH *pBrushes, DW
SysColorBrushes[i] = pBrushes[i]; SysColorBrushes[i] = pBrushes[i];
} }
return (DWORD)pOldCol; /* FIXME: pointer truncation */ return (DWORD_PTR)pOldCol;
} }
if (!pPens && !pBrushes) /* "restore" call */ if (!pPens && !pBrushes) /* "restore" call */
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment