sync with trunk head (34904)
[reactos.git] / reactos / subsystems / win32 / win32k / ntuser / hook.c
index c14c2b5..8250467 100644 (file)
@@ -274,7 +274,7 @@ IntCallLowLevelHook(INT HookId, INT Code, WPARAM wParam, LPARAM lParam, PHOOK Ho
 
    /* FIXME should get timeout from
     * HKEY_CURRENT_USER\Control Panel\Desktop\LowLevelHooksTimeout */
-   Status = co_MsqSendMessage(((PW32THREAD)Hook->Thread->Tcb.Win32Thread)->MessageQueue, (HWND) Code, HookId,
+   Status = co_MsqSendMessage(((PW32THREAD)Hook->Thread->Tcb.Win32Thread)->MessageQueue, (HWND)(INT_PTR) Code, HookId,
                               wParam, lParam, 5000, TRUE, TRUE, &uResult);
 
    return NT_SUCCESS(Status) ? uResult : 0;
@@ -927,7 +927,7 @@ CLEANUP:
 HHOOK
 STDCALL
 NtUserSetWindowsHookAW(
-   int idHook, 
+   int idHook,
    HOOKPROC lpfn,
    BOOL Ansi)
 {
@@ -981,7 +981,7 @@ NtUserSetWindowsHookEx(
       }
       Mod = NULL;
       Global = FALSE;
-      if (! NT_SUCCESS(PsLookupThreadByThreadId((HANDLE) ThreadId, &Thread)))
+      if (! NT_SUCCESS(PsLookupThreadByThreadId((HANDLE)(DWORD_PTR)ThreadId, &Thread)))
       {
          DPRINT1("Invalid thread id 0x%x\n", ThreadId);
          SetLastWin32Error(ERROR_INVALID_PARAMETER);
@@ -1195,5 +1195,5 @@ CLEANUP:
    UserLeave();
    END_CLEANUP;
 }
+
 /* EOF */