Commit 98c5cd6f authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

"resultp" can be NULL in SendMessageTimeout*().

parent caad1d8e
......@@ -1856,7 +1856,7 @@ LRESULT WINAPI SendMessageTimeout16( HWND16 hwnd, UINT16 msg, WPARAM16 wParam,
/* FIXME: need support for SMTO_BLOCK */
ret = MSG_SendMessage(hwnd, msg, wParam, lParam, timeout, 0, &msgRet);
*resultp = (WORD) msgRet;
if (resultp) *resultp = (WORD) msgRet;
return ret;
}
......@@ -1876,7 +1876,7 @@ LRESULT WINAPI SendMessageTimeoutA( HWND hwnd, UINT msg, WPARAM wParam,
ret = MSG_SendMessage(hwnd, msg, wParam, lParam, timeout, SMSG_WIN32,
&msgRet);
*resultp = (DWORD) msgRet;
if (resultp) *resultp = (DWORD) msgRet;
return ret;
}
......@@ -1896,7 +1896,7 @@ LRESULT WINAPI SendMessageTimeoutW( HWND hwnd, UINT msg, WPARAM wParam,
ret = MSG_SendMessage(hwnd, msg, wParam, lParam, timeout,
SMSG_WIN32 | SMSG_UNICODE, &msgRet);
*resultp = (DWORD) msgRet;
if (resultp) *resultp = (DWORD) msgRet;
return ret;
}
......
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