Commit in reactos/lib on MAIN
ntdll/def/ntdll.def+2-11.134 -> 1.135
rtl/unicode.c+231.9 -> 1.10
+25-1
2 modified files
- Implement RtlInitUnicodeStringEx.

reactos/lib/ntdll/def
ntdll.def 1.134 -> 1.135
diff -u -r1.134 -r1.135
--- ntdll.def	12 Nov 2004 12:06:54 -0000	1.134
+++ ntdll.def	5 Dec 2004 21:16:01 -0000	1.135
@@ -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 @@
 RtlInitNlsTables@16
 RtlInitString@8
 RtlInitUnicodeString@8
+RtlInitUnicodeStringEx@8
 ;RtlInitializeAtomPackage
 RtlInitializeBitMap@12
 RtlInitializeContext@20

reactos/lib/rtl
unicode.c 1.9 -> 1.10
diff -u -r1.9 -r1.10
--- unicode.c	13 Sep 2004 17:27:23 -0000	1.9
+++ unicode.c	5 Dec 2004 21:16:01 -0000	1.10
@@ -499,6 +499,29 @@
 
 /*
  * @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
  *
  * NOTES
  *  Writes at most length characters to the string str.
CVSspam 0.2.8