From 39be2580488f72a4d2b90e0e16706de0d6e340ce Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sun, 12 Oct 2025 20:34:49 -0400 Subject: [PATCH] safer by default nannotation --- comhelpers.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comhelpers.d b/comhelpers.d index 155c6e8..e32bfbb 100644 --- a/comhelpers.d +++ b/comhelpers.d @@ -479,7 +479,7 @@ extern (D) void ObjectDestroyed() } -char[] oleCharsToString(char[] buffer, OLECHAR* chars) { +char[] oleCharsToString(char[] buffer, OLECHAR* chars) @system { auto c = cast(wchar*) chars; auto orig = c; @@ -789,7 +789,7 @@ BOOL SetKeyAndValue(LPCSTR pszKey, LPCSTR pszSubkey, LPCSTR pszValue) return result; } -void unicode2ansi(char *s) +void unicode2ansi(char *s) @system { wchar *w;