[NTUSER] defwnd.c: Trivial formatting fixes (#7038)

And (re)move 2 'break;'.
This commit is contained in:
Serge Gautherie 2020-06-14 13:49:22 +02:00 committed by Hermès Bélusca-Maïto
parent 69b382a1ac
commit 5385f32794
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -189,6 +189,7 @@ DefWndHandleSysCommand(PWND pWnd, WPARAM wParam, LPARAM lParam)
} }
} }
break; break;
// case SC_DEFAULT: // case SC_DEFAULT:
case SC_MOUSEMENU: case SC_MOUSEMENU:
{ {
@ -197,15 +198,14 @@ DefWndHandleSysCommand(PWND pWnd, WPARAM wParam, LPARAM lParam)
Pt.y = (short)HIWORD(lParam); Pt.y = (short)HIWORD(lParam);
MENU_TrackMouseMenuBar(pWnd, wParam & 0x000f, Pt); MENU_TrackMouseMenuBar(pWnd, wParam & 0x000f, Pt);
} }
break; break;
case SC_KEYMENU: case SC_KEYMENU:
MENU_TrackKbdMenuBar(pWnd, wParam, (WCHAR)lParam); MENU_TrackKbdMenuBar(pWnd, wParam, (WCHAR)lParam);
break; break;
default: default:
// We do not support anything else here so we should return normal even when sending a hook. // We do not support anything else here so we should return normal even when sending a hook.
return 0; return 0;
} }
@ -284,9 +284,9 @@ DefWndHandleSetCursor(PWND pWnd, WPARAM wParam, LPARAM lParam)
} }
} }
//// ////
if (Msg == WM_LBUTTONDOWN || Msg == WM_MBUTTONDOWN || if (Msg == WM_LBUTTONDOWN || Msg == WM_MBUTTONDOWN ||
Msg == WM_RBUTTONDOWN || Msg == WM_XBUTTONDOWN) Msg == WM_RBUTTONDOWN || Msg == WM_XBUTTONDOWN)
{ {
if (pwndPopUP) if (pwndPopUP)
{ {
FLASHWINFO fwi = FLASHWINFO fwi =
@ -299,9 +299,9 @@ DefWndHandleSetCursor(PWND pWnd, WPARAM wParam, LPARAM lParam)
// Now shake that window! // Now shake that window!
IntFlashWindowEx(pwndPopUP, &fwi); IntFlashWindowEx(pwndPopUP, &fwi);
} }
UserPostMessage(hwndSAS, WM_LOGONNOTIFY, LN_MESSAGE_BEEP, 0); UserPostMessage(hwndSAS, WM_LOGONNOTIFY, LN_MESSAGE_BEEP, 0);
} }
break; break;
} }
case HTCLIENT: case HTCLIENT:
@ -309,8 +309,8 @@ DefWndHandleSetCursor(PWND pWnd, WPARAM wParam, LPARAM lParam)
if (pWnd->pcls->spcur) if (pWnd->pcls->spcur)
{ {
IntSystemSetCursor(pWnd->pcls->spcur); IntSystemSetCursor(pWnd->pcls->spcur);
} }
return FALSE; return FALSE;
} }
case HTLEFT: case HTLEFT:
@ -716,7 +716,7 @@ IntDefWindowProc(
* "If it is appropriate to do so, the system sends the WM_SYSCOMMAND * "If it is appropriate to do so, the system sends the WM_SYSCOMMAND
* message to the window". When is it appropriate? * message to the window". When is it appropriate?
*/ */
ERR("WM_NCRBUTTONUP\n"); ERR("WM_NCRBUTTONUP\n");
break; break;
case WM_XBUTTONUP: case WM_XBUTTONUP:
@ -773,7 +773,7 @@ IntDefWindowProc(
{ {
WARN("Scroll Menu Not Supported\n"); WARN("Scroll Menu Not Supported\n");
} }
} }
break; break;
} }
@ -1286,12 +1286,12 @@ IntDefWindowProc(
} }
if (!lResult) if (!lResult)
lResult = co_HOOK_CallHooks(WH_CBT, HCBT_MOVESIZE, (WPARAM)UserHMGetHandle(Wnd), lParam ? (LPARAM)&rt : 0); lResult = co_HOOK_CallHooks(WH_CBT, HCBT_MOVESIZE, (WPARAM)UserHMGetHandle(Wnd), lParam ? (LPARAM)&rt : 0);
}
break; break;
}
} }
break; break;
} }
break;
} }
return lResult; return lResult;
} }