From 54ae47358c493c1051443c2222d2505f565b4b65 Mon Sep 17 00:00:00 2001 From: Kai Morich Date: Sat, 24 Oct 1998 12:01:36 +0000 Subject: [PATCH] Added FIXME message in PostMessage32x if parameters are truncated when calling PostMessage16. --- windows/message.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/windows/message.c b/windows/message.c index ccf471bf7f4..cd79d25ac9b 100644 --- a/windows/message.c +++ b/windows/message.c @@ -1113,8 +1113,12 @@ BOOL16 WINAPI PostMessage16( HWND16 hwnd, UINT16 message, WPARAM16 wParam, BOOL32 WINAPI PostMessage32A( HWND32 hwnd, UINT32 message, WPARAM32 wParam, LPARAM lParam ) { - /* FIXME */ - return PostMessage16( hwnd, message, wParam, lParam ); + /* FIXME */ + if (message&0xffff0000) + FIXME(msg,"message is truncated from %d to %d\n", message, message&0xffff); + if (wParam&0xffff0000) + FIXME(msg,"wParam is truncated from %d to %d\n", wParam, wParam&0xffff); + return PostMessage16( hwnd, message, wParam, lParam ); } @@ -1124,8 +1128,12 @@ BOOL32 WINAPI PostMessage32A( HWND32 hwnd, UINT32 message, WPARAM32 wParam, BOOL32 WINAPI PostMessage32W( HWND32 hwnd, UINT32 message, WPARAM32 wParam, LPARAM lParam ) { - /* FIXME */ - return PostMessage16( hwnd, message, wParam, lParam ); + /* FIXME */ + if (message&0xffff0000) + FIXME(msg,"message is truncated from %d to %d\n", message, message&0xffff); + if (wParam&0xffff0000) + FIXME(msg,"wParam is truncated from %d to %d\n", wParam, wParam&0xffff); + return PostMessage16( hwnd, message, wParam, lParam ); }