user32: Fix Win64 warnings.

This commit is contained in:
Dmitry Timoshkov 2008-04-11 16:56:08 +09:00 committed by Alexandre Julliard
parent 287561cce5
commit 29565d558f
3 changed files with 3 additions and 3 deletions

View File

@ -259,7 +259,7 @@ static BOOL CALLBACK extract_icons_callback(HMODULE hModule, LPCWSTR pwszType, L
LONG_PTR lParam)
{
struct extract_icons_state *pState = (struct extract_icons_state *)lParam;
INT idCurrent = (INT)pwszName;
INT idCurrent = LOWORD(pwszName);
/* If the handle array pointer is NULL, we just count the number of icons in the module. */
if (!pState->pahIcon) {

View File

@ -2607,7 +2607,7 @@ static LRESULT WINAPI ListBoxWndProc_common( HWND hwnd, UINT msg,
CREATESTRUCTW *lpcs = (CREATESTRUCTW *)lParam;
if (lpcs->style & LBS_COMBOBOX) lphc = (LPHEADCOMBO)lpcs->lpCreateParams;
if (!LISTBOX_Create( hwnd, lphc )) return -1;
TRACE("creating wnd=%p descr=%x\n", hwnd, GetWindowLongPtrW( hwnd, 0 ) );
TRACE("creating hwnd %p descr %p\n", hwnd, (void *)GetWindowLongPtrW( hwnd, 0 ) );
return 0;
}
/* Ignore all other messages before we get a WM_CREATE */

View File

@ -2110,7 +2110,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
case SPI_SETMOUSESPEED: /* 113 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
{
ret = save_int_param( SPI_SETMOUSE_REGKEY, SPI_SETMOUSE_VALNAME3,
&mouse_speed, (INT) pvParam, fWinIni);
&mouse_speed, PtrToInt(pvParam), fWinIni);
break;
}