Commit 5a49e401 authored by Alexandre Julliard's avatar Alexandre Julliard

SendMessageTimeout takes a DWORD_PTR not a DWORD.

parent 3a503499
...@@ -1324,7 +1324,7 @@ static HRESULT WINAPI TestRE_IClassFactory_CreateInstance( ...@@ -1324,7 +1324,7 @@ static HRESULT WINAPI TestRE_IClassFactory_CreateInstance(
REFIID riid, REFIID riid,
LPVOID *ppvObj) LPVOID *ppvObj)
{ {
DWORD res; DWORD_PTR res;
BOOL ret = SendMessageTimeout(hwnd_app, WM_NULL, 0, 0, SMTO_BLOCK, 5000, &res); BOOL ret = SendMessageTimeout(hwnd_app, WM_NULL, 0, 0, SMTO_BLOCK, 5000, &res);
ok(ret, "Timed out sending a message to originating window during RPC call\n"); ok(ret, "Timed out sending a message to originating window during RPC call\n");
return S_FALSE; return S_FALSE;
......
...@@ -3426,6 +3426,6 @@ BOOL WINAPI GetGUIThreadInfo( DWORD id, GUITHREADINFO *info ) ...@@ -3426,6 +3426,6 @@ BOOL WINAPI GetGUIThreadInfo( DWORD id, GUITHREADINFO *info )
*/ */
BOOL WINAPI IsHungAppWindow( HWND hWnd ) BOOL WINAPI IsHungAppWindow( HWND hWnd )
{ {
DWORD dwResult; DWORD_PTR dwResult;
return !SendMessageTimeoutA(hWnd, WM_NULL, 0, 0, SMTO_ABORTIFHUNG, 5000, &dwResult); return !SendMessageTimeoutA(hWnd, WM_NULL, 0, 0, SMTO_ABORTIFHUNG, 5000, &dwResult);
} }
...@@ -374,7 +374,7 @@ BOOL WINAPI ExitWindowsEx( UINT flags, DWORD reason ) ...@@ -374,7 +374,7 @@ BOOL WINAPI ExitWindowsEx( UINT flags, DWORD reason )
{ {
HWND *phwnd; HWND *phwnd;
UINT send_flags; UINT send_flags;
DWORD result; DWORD_PTR result;
/* Send a WM_QUERYENDSESSION message to every window */ /* Send a WM_QUERYENDSESSION message to every window */
send_flags=(flags & EWX_FORCEIFHUNG) ? SMTO_ABORTIFHUNG : SMTO_NORMAL; send_flags=(flags & EWX_FORCEIFHUNG) ? SMTO_ABORTIFHUNG : SMTO_NORMAL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment