From ecf0a54ebb111fa11716281c7421ba7c4d8b476c Mon Sep 17 00:00:00 2001 From: Volodymyr Date: Tue, 29 Sep 2026 13:59:42 +0300 Subject: [PATCH] ci(share_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 --- .../share_plus/example/windows/runner/win32_window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/share_plus/share_plus/example/windows/runner/win32_window.cpp b/packages/share_plus/share_plus/example/windows/runner/win32_window.cpp index 9669d7fc6b..90ff01e592 100644 --- a/packages/share_plus/share_plus/example/windows/runner/win32_window.cpp +++ b/packages/share_plus/share_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) {