ntdll: Provide RtlInitUnicodeString for unixlibs.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2022-04-18 14:05:53 +02:00 committed by Alexandre Julliard
parent 62e51da2cd
commit 1c0288413a
1 changed files with 9 additions and 0 deletions

View File

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