Do not assign to casted values.
This commit is contained in:
parent
e42d8aef24
commit
553b0fca1f
|
@ -84,11 +84,11 @@ static INT_PTR CALLBACK SHDlgProcEx(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM
|
||||||
switch (LOWORD(wParam))
|
switch (LOWORD(wParam))
|
||||||
{
|
{
|
||||||
case IDYES:
|
case IDYES:
|
||||||
LOWORD(wParam) = IDOK;
|
wParam = MAKELONG(IDOK, HIWORD(wParam));
|
||||||
/* Fall through ... */
|
/* Fall through ... */
|
||||||
case IDNO:
|
case IDNO:
|
||||||
if (LOWORD(wParam) == IDNO)
|
if (LOWORD(wParam) == IDNO)
|
||||||
LOWORD(wParam) = IDCANCEL;
|
wParam = MAKELONG(IDCANCEL, HIWORD(wParam));
|
||||||
/* Fall through ... */
|
/* Fall through ... */
|
||||||
case IDOK:
|
case IDOK:
|
||||||
case IDCANCEL:
|
case IDCANCEL:
|
||||||
|
|
Loading…
Reference in New Issue