Skip to content

Commit 61c8fed

Browse files
authored
terminate must be noreturn (#527)
1 parent 57c56c1 commit 61c8fed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

strings/base_error.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,10 +565,11 @@ WINRT_EXPORT namespace winrt
565565
return pointer;
566566
}
567567

568-
inline void terminate() noexcept
568+
[[noreturn]] inline void terminate() noexcept
569569
{
570570
static void(__stdcall * handler)(int32_t) noexcept;
571571
impl::load_runtime_function("RoFailFastWithErrorContext", handler, impl::fallback_RoFailFastWithErrorContext);
572572
handler(to_hresult());
573+
abort();
573574
}
574575
}

0 commit comments

Comments
 (0)