From 50eb76f656eca5df8df846eb114207644e3f1d83 Mon Sep 17 00:00:00 2001 From: Volodymyr Date: Tue, 29 Sep 2026 13:45:49 +0300 Subject: [PATCH] ci(battery_plus): fix Windows example build with newer MSVC Wrap case WM_SIZE in braces so 'rect' initialization is not skipped by the following case label (error C2360). Co-Authored-By: Claude Sonnet 5.5 --- .../battery_plus/example/windows/runner/win32_window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/battery_plus/battery_plus/example/windows/runner/win32_window.cpp b/packages/battery_plus/battery_plus/example/windows/runner/win32_window.cpp index 9669d7fc6b..90ff01e592 100644 --- a/packages/battery_plus/battery_plus/example/windows/runner/win32_window.cpp +++ b/packages/battery_plus/battery_plus/example/windows/runner/win32_window.cpp @@ -167,7 +167,7 @@ Win32Window::MessageHandler(HWND hwnd, UINT const message, WPARAM const wparam, return 0; } - case WM_SIZE: + case WM_SIZE: { RECT rect = GetClientArea(); if (child_content_ != nullptr) { // Size and position the child window. @@ -175,6 +175,7 @@ Win32Window::MessageHandler(HWND hwnd, UINT const message, WPARAM const wparam, rect.bottom - rect.top, TRUE); } return 0; + } case WM_ACTIVATE: if (child_content_ != nullptr) {