Unverified Commit a69e393d authored by Jay Freeman (saurik)'s avatar Jay Freeman (saurik) Committed by GitHub

Avoid skipping variable initialization using case. (#67899)

parent 31a2c9d4
...@@ -173,7 +173,7 @@ Win32Window::MessageHandler(HWND hwnd, ...@@ -173,7 +173,7 @@ Win32Window::MessageHandler(HWND hwnd,
return 0; return 0;
} }
case WM_SIZE: case WM_SIZE: {
RECT rect = GetClientArea(); RECT rect = GetClientArea();
if (child_content_ != nullptr) { if (child_content_ != nullptr) {
// Size and position the child window. // Size and position the child window.
...@@ -181,6 +181,7 @@ Win32Window::MessageHandler(HWND hwnd, ...@@ -181,6 +181,7 @@ Win32Window::MessageHandler(HWND hwnd,
rect.bottom - rect.top, TRUE); rect.bottom - rect.top, TRUE);
} }
return 0; return 0;
}
case WM_ACTIVATE: case WM_ACTIVATE:
if (child_content_ != nullptr) { if (child_content_ != nullptr) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment