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; + } } }