mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 04:03:56 +00:00
- Implement RtlInitUnicodeStringEx.
svn path=/trunk/; revision=11947
This commit is contained in:
parent
44109026ba
commit
03ac59451e
2 changed files with 25 additions and 1 deletions
|
@ -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
|
||||
;
|
||||
|
@ -487,6 +487,7 @@ RtlInitCodePageTable@8
|
|||
RtlInitNlsTables@16
|
||||
RtlInitString@8
|
||||
RtlInitUnicodeString@8
|
||||
RtlInitUnicodeStringEx@8
|
||||
;RtlInitializeAtomPackage
|
||||
RtlInitializeBitMap@12
|
||||
RtlInitializeContext@20
|
||||
|
|
|
@ -497,6 +497,29 @@ RtlInitUnicodeString(IN OUT PUNICODE_STRING DestinationString,
|
|||
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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue