Jacek Caban : ntdll: Provide RtlInitUnicodeString for unixlibs.

Alexandre Julliard julliard at winehq.org
Mon Apr 18 16:08:46 CDT 2022


Module: wine
Branch: master
Commit: 1c0288413a5dc5ab2f1f38855885de2bd18643c0
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1c0288413a5dc5ab2f1f38855885de2bd18643c0

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Apr 18 14:05:53 2022 +0200

ntdll: Provide RtlInitUnicodeString for unixlibs.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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)
  */




More information about the wine-cvs mailing list