user32: Avoid pointer truncation in SetSysColorsTemp.

This commit is contained in:
Alexandre Julliard 2010-04-09 13:58:14 +02:00
parent d982262302
commit 58d1981fbd
1 changed files with 2 additions and 2 deletions

View File

@ -2975,7 +2975,7 @@ BOOL WINAPI SetSysColors( INT nChanges, const INT *lpSysColor,
*
* 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;
@ -2994,7 +2994,7 @@ DWORD WINAPI SetSysColorsTemp( const COLORREF *pPens, const HBRUSH *pBrushes, DW
SysColorBrushes[i] = pBrushes[i];
}
return (DWORD)pOldCol; /* FIXME: pointer truncation */
return (DWORD_PTR)pOldCol;
}
if (!pPens && !pBrushes) /* "restore" call */
{