- Fix SetSysColorTemps prototype and implementation for 64 bit compatibility.

svn path=/trunk/; revision=46917
This commit is contained in:
Aleksey Bragin 2010-04-18 12:42:28 +00:00
parent 78db5f0d71
commit f272498345
2 changed files with 3 additions and 3 deletions

View file

@ -170,7 +170,7 @@ UserRealizePalette ( HDC hDC )
static HPEN SysColorPens[COLOR_MENUBAR + 1];
static HBRUSH SysColorBrushes[COLOR_MENUBAR + 1];
DWORD
DWORD_PTR
WINAPI
SetSysColorsTemp(const COLORREF *pPens,
const HBRUSH *pBrushes,
@ -193,7 +193,7 @@ SetSysColorsTemp(const COLORREF *pPens,
SysColorBrushes[i] = pBrushes[i];
}
return (DWORD) pOldCol; /* FIXME: pointer truncation */
return (DWORD_PTR) pOldCol;
}
if (!pPens && !pBrushes) /* "restore" call */
{

View file

@ -4442,7 +4442,7 @@ int WINAPI SetScrollInfo(HWND,int,LPCSCROLLINFO,BOOL);
int WINAPI SetScrollPos(HWND,int,int,BOOL);
BOOL WINAPI SetScrollRange(HWND,int,int,int,BOOL);
BOOL WINAPI SetSysColors(int,const INT *,const COLORREF *);
DWORD WINAPI SetSysColorsTemp(const COLORREF *, const HBRUSH *, DWORD);
DWORD_PTR WINAPI SetSysColorsTemp(const COLORREF *, const HBRUSH *, DWORD);
#define SetSysModalWindow(h) (NULL)
BOOL WINAPI SetSystemCursor(HCURSOR,DWORD);
BOOL WINAPI SetSystemMenu(HWND,HMENU);