From 553b0fca1fb55e2271bb22e1b878e1eacac83e6b Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 15 Jul 2004 22:07:54 +0000 Subject: [PATCH] Do not assign to casted values. --- dlls/shlwapi/msgbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shlwapi/msgbox.c b/dlls/shlwapi/msgbox.c index d61c5f9815d..1f92ffb0aa2 100644 --- a/dlls/shlwapi/msgbox.c +++ b/dlls/shlwapi/msgbox.c @@ -84,11 +84,11 @@ static INT_PTR CALLBACK SHDlgProcEx(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM switch (LOWORD(wParam)) { case IDYES: - LOWORD(wParam) = IDOK; + wParam = MAKELONG(IDOK, HIWORD(wParam)); /* Fall through ... */ case IDNO: if (LOWORD(wParam) == IDNO) - LOWORD(wParam) = IDCANCEL; + wParam = MAKELONG(IDCANCEL, HIWORD(wParam)); /* Fall through ... */ case IDOK: case IDCANCEL: