From 01cc666976e1e72549835c0bfcd995195673fc91 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sat, 8 Feb 2025 15:45:30 -0500 Subject: [PATCH] safer by default annotations --- com.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com.d b/com.d index a1d10da..fdfd423 100644 --- a/com.d +++ b/com.d @@ -1159,7 +1159,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; @@ -1470,7 +1470,7 @@ BOOL SetKeyAndValue(LPCSTR pszKey, LPCSTR pszSubkey, LPCSTR pszValue) return result; } -void unicode2ansi(char *s) +void unicode2ansi(char *s) @system { wchar *w;