safer by default nannotation

This commit is contained in:
Adam D. Ruppe 2025-10-12 20:34:49 -04:00
parent db6f95f4b7
commit 39be258048
1 changed files with 2 additions and 2 deletions

View File

@ -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;