From 1c0288413a5dc5ab2f1f38855885de2bd18643c0 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 18 Apr 2022 14:05:53 +0200 Subject: [PATCH] ntdll: Provide RtlInitUnicodeString for unixlibs. Signed-off-by: Jacek Caban Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/ntdll/unix/env.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c index ee958ae71f4..5b192f39732 100644 --- a/dlls/ntdll/unix/env.c +++ b/dlls/ntdll/unix/env.c @@ -2356,6 +2356,15 @@ NTSTATUS WINAPI RtlUnicodeToUTF8N( char *dst, DWORD dstlen, DWORD *reslen, const return status; } +/********************************************************************** + * RtlInitUnicodeString (ntdll.so) + */ +void WINAPI RtlInitUnicodeString( UNICODE_STRING *str, const WCHAR *data ) +{ + if (data) init_unicode_string( str, data ); + else str->Length = str->MaximumLength = 0; +} + /********************************************************************** * RtlNtStatusToDosError (ntdll.so) */