- Implement RtlInitUnicodeStringEx.

svn path=/trunk/; revision=11947
This commit is contained in:
Filip Navara 2004-12-05 21:16:01 +00:00
parent 44109026ba
commit 03ac59451e
2 changed files with 25 additions and 1 deletions

View file

@ -1,4 +1,4 @@
; $Id: ntdll.def,v 1.134 2004/11/12 12:06:54 ekohl Exp $ ; $Id: ntdll.def,v 1.135 2004/12/05 21:16:01 navaraf Exp $
; ;
; ReactOS Operating System ; ReactOS Operating System
; ;
@ -487,6 +487,7 @@ RtlInitCodePageTable@8
RtlInitNlsTables@16 RtlInitNlsTables@16
RtlInitString@8 RtlInitString@8
RtlInitUnicodeString@8 RtlInitUnicodeString@8
RtlInitUnicodeStringEx@8
;RtlInitializeAtomPackage ;RtlInitializeAtomPackage
RtlInitializeBitMap@12 RtlInitializeBitMap@12
RtlInitializeContext@20 RtlInitializeContext@20

View file

@ -497,6 +497,29 @@ RtlInitUnicodeString(IN OUT PUNICODE_STRING DestinationString,
DestinationString->Buffer = (PWSTR)SourceString; DestinationString->Buffer = (PWSTR)SourceString;
} }
/*
* @implemented
*/
NTSTATUS STDCALL
RtlInitUnicodeStringEx(OUT PUNICODE_STRING DestinationString,
IN PCWSTR SourceString)
{
ULONG Length = 0;
if (SourceString != NULL)
{
Length = wcslen(SourceString) * sizeof(WCHAR);
if (Length > 0xFFFC)
return STATUS_NAME_TOO_LONG;
}
DestinationString->Length = Length;
DestinationString->MaximumLength = Length + sizeof(WCHAR);
DestinationString->Buffer = (PWSTR)SourceString;
return STATUS_SUCCESS;
}
/* /*
* @implemented * @implemented
* *