Do not assign to casted values.

This commit is contained in:
Marcus Meissner 2004-07-15 22:07:54 +00:00 committed by Alexandre Julliard
parent e42d8aef24
commit 553b0fca1f
1 changed files with 2 additions and 2 deletions

View File

@ -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: