From 98c5cd6f9e1b944386d45db0b924710679e9aa70 Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Tue, 4 Jan 2000 00:23:32 +0000 Subject: [PATCH] "resultp" can be NULL in SendMessageTimeout*(). --- windows/message.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/windows/message.c b/windows/message.c index 91dc327fffc..da46ed2008b 100644 --- a/windows/message.c +++ b/windows/message.c @@ -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; }