[USER32] Fix 64 bit issues

This commit is contained in:
Timo Kreuzer 2018-03-04 17:44:13 +01:00
parent 7ad5f405cb
commit e9ad66d52f
6 changed files with 7 additions and 7 deletions

View file

@ -563,7 +563,7 @@ GetThreadDesktop(
}
return NtUserGetThreadDesktop(dwThreadId,
(DWORD)GetThreadConsoleDesktopRequest->ConsoleDesktop);
(DWORD_PTR)GetThreadConsoleDesktopRequest->ConsoleDesktop);
}

View file

@ -574,7 +574,7 @@ User32CallGetCharsetInfo(PVOID Arguments, ULONG ArgumentLength)
TRACE("GetCharsetInfo\n");
Ret = TranslateCharsetInfo((DWORD *)pgci->Locale, &pgci->Cs, TCI_SRCLOCALE);
Ret = TranslateCharsetInfo((DWORD *)(ULONG_PTR)pgci->Locale, &pgci->Cs, TCI_SRCLOCALE);
return ZwCallbackReturn(Arguments, ArgumentLength, Ret ? STATUS_SUCCESS : STATUS_UNSUCCESSFUL);
}

View file

@ -281,7 +281,7 @@ create_alpha_bitmap(
HDC hdc = NULL, hdcScreen;
unsigned char *ptr;
void *bits = NULL;
size_t size;
ULONG size;
hdcScreen = CreateDCW(DISPLAYW, NULL, NULL, NULL);
if (!hdcScreen)

View file

@ -869,7 +869,7 @@ RealDefWindowProcA(HWND hWnd,
{
PWSTR buf = NULL;
PSTR outbuf = (PSTR)lParam;
UINT copy;
SIZE_T copy;
if (Wnd != NULL && wParam != 0)
{

View file

@ -2532,7 +2532,7 @@ IsDialogMessageW(
WCHAR *buffer = HeapAlloc (GetProcessHeap(), 0, maxlen * sizeof(WCHAR));
if (buffer)
{
INT length;
SIZE_T length;
SendMessageW (hwndNext, WM_GETTEXT, maxlen, (LPARAM) buffer);
length = strlenW (buffer);
HeapFree (GetProcessHeap(), 0, buffer);

View file

@ -387,7 +387,7 @@ MessageBoxTimeoutIndirectW(
else if (IS_INTRESOURCE(lpMsgBoxParams->lpszCaption))
{
/* User-defined resource string */
caplen = LoadStringW(lpMsgBoxParams->hInstance, (UINT)lpMsgBoxParams->lpszCaption, (LPWSTR)&caption, 0);
caplen = LoadStringW(lpMsgBoxParams->hInstance, PtrToUlong(lpMsgBoxParams->lpszCaption), (LPWSTR)&caption, 0);
}
else
{
@ -405,7 +405,7 @@ MessageBoxTimeoutIndirectW(
else if (IS_INTRESOURCE(lpMsgBoxParams->lpszText))
{
/* User-defined resource string */
textlen = LoadStringW(lpMsgBoxParams->hInstance, (UINT)lpMsgBoxParams->lpszText, (LPWSTR)&text, 0);
textlen = LoadStringW(lpMsgBoxParams->hInstance, PtrToUlong(lpMsgBoxParams->lpszText), (LPWSTR)&text, 0);
}
else
{