From 0eaa805d3ea10f5f82479e665b03264d74821138 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Thu, 17 Oct 2024 18:32:58 -0700 Subject: [PATCH] Fix illegal break in code writer --- src/cswinrt/code_writers.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/cswinrt/code_writers.h b/src/cswinrt/code_writers.h index 08d46233a..ce84486e8 100644 --- a/src/cswinrt/code_writers.h +++ b/src/cswinrt/code_writers.h @@ -8075,10 +8075,11 @@ NativeMemory.Free((void*)abiToProjectionVftablePtr); if (settings.idic_exclusiveto) { shouldOmitCcwCodegen = true; - break; } - - w.write(R"(% + else + { + // Otherwise, just write the minimal non-IDIC interface + w.write(R"(% internal interface % : % { } @@ -8086,7 +8087,9 @@ internal interface % : % bind(type), type_name, bind(type, typedef_name_type::CCW, false)); - return true; + + return true; + } } }