From ed3ca3d52cc16b25f58a0646aea25017cf985f20 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Thu, 25 Nov 1999 23:45:30 +0000 Subject: [PATCH] More runtime functions svn path=/trunk/; revision=798 --- reactos/lib/ntdll/def/ntdll.def | 6 ++++- reactos/lib/ntdll/def/ntdll.edf | 6 ++++- reactos/lib/ntdll/rtl/unicode.c | 43 ++++++++++++++++++++++++++++++++- reactos/lib/ntdll/stubs/stubs.c | 4 --- 4 files changed, 52 insertions(+), 7 deletions(-) diff --git a/reactos/lib/ntdll/def/ntdll.def b/reactos/lib/ntdll/def/ntdll.def index 428815f26a1..498abc271f7 100644 --- a/reactos/lib/ntdll/def/ntdll.def +++ b/reactos/lib/ntdll/def/ntdll.def @@ -1,4 +1,4 @@ -; $Id: ntdll.def,v 1.23 1999/11/20 21:46:16 ekohl Exp $ +; $Id: ntdll.def,v 1.24 1999/11/25 23:45:29 ekohl Exp $ ; ; ReactOS Operating System ; @@ -510,6 +510,10 @@ RtlUpperChar@4 RtlUpperString@8 RtlValidateHeap@12 RtlZeroMemory@8 +RtlxAnsiStringToUnicodeSize@4 +RtlxOemStringToUnicodeSize@4 +RtlxUnicodeStringToAnsiSize@4 +RtlxUnicodeStringToOemSize@4 _memccpy _memicmp _splitpath diff --git a/reactos/lib/ntdll/def/ntdll.edf b/reactos/lib/ntdll/def/ntdll.edf index b5479035ecf..689667d6477 100644 --- a/reactos/lib/ntdll/def/ntdll.edf +++ b/reactos/lib/ntdll/def/ntdll.edf @@ -1,4 +1,4 @@ -; $Id: ntdll.edf,v 1.13 1999/11/25 10:47:55 dwelch Exp $ +; $Id: ntdll.edf,v 1.14 1999/11/25 23:45:30 ekohl Exp $ ; ; ReactOS Operating System ; @@ -501,6 +501,10 @@ RtlUpperChar=RtlUpperChar@4 RtlUpperString=RtlUpperString@8 RtlValidateHeap=RtlValidateHeap@12 RtlZeroMemory=RtlZeroMemory@8 +RtlxAnsiStringToUnicodeSize=RtlxAnsiStringToUnicodeSize@4 +RtlxOemStringToUnicodeSize=RtlxOemStringToUnicodeSize@4 +RtlxUnicodeStringToAnsiSize=RtlxUnicodeStringToAnsiSize@4 +RtlxUnicodeStringToOemSize=RtlxUnicodeStringToOemSize@4 _memccpy _memicmp _splitpath diff --git a/reactos/lib/ntdll/rtl/unicode.c b/reactos/lib/ntdll/rtl/unicode.c index dd1c643e5f4..7320e7ae53c 100644 --- a/reactos/lib/ntdll/rtl/unicode.c +++ b/reactos/lib/ntdll/rtl/unicode.c @@ -1,4 +1,4 @@ -/* $Id: unicode.c,v 1.9 1999/11/20 21:46:46 ekohl Exp $ +/* $Id: unicode.c,v 1.10 1999/11/25 23:43:44 ekohl Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -1378,6 +1378,47 @@ RtlUpperString ( } +ULONG +STDCALL +RtlxAnsiStringToUnicodeSize ( + IN PANSI_STRING AnsiString + ) +{ + return RtlAnsiStringToUnicodeSize (AnsiString); +} + + +ULONG +STDCALL +RtlxOemStringToUnicodeSize ( + IN POEM_STRING OemString + ) +{ + return RtlAnsiStringToUnicodeSize ((PANSI_STRING)OemString); +} + + +ULONG +STDCALL +RtlxUnicodeStringToAnsiSize ( + IN PUNICODE_STRING UnicodeString + ) +{ + return RtlUnicodeStringToAnsiSize (UnicodeString); +} + + +ULONG +STDCALL +RtlxUnicodeStringToOemSize ( + IN PUNICODE_STRING UnicodeString + ) +{ + return RtlUnicodeStringToAnsiSize (UnicodeString); +} + + +/* This one doesn't belong here! */ VOID STDCALL RtlUnwind ( diff --git a/reactos/lib/ntdll/stubs/stubs.c b/reactos/lib/ntdll/stubs/stubs.c index 6f2f2055403..49a40648014 100644 --- a/reactos/lib/ntdll/stubs/stubs.c +++ b/reactos/lib/ntdll/stubs/stubs.c @@ -70,10 +70,6 @@ STUB(RtlpNtQueryValueKey) STUB(RtlpNtSetValueKey) STUB(RtlpUnWaitCriticalSection) STUB(RtlpWaitForCriticalSection) -STUB(RtlxAnsiStringToUnicodeSize) -STUB(RtlxOemStringToUnicodeSize) -STUB(RtlxUnicodeStringToAnsiSize) -STUB(RtlxUnicodeStringToOemSize) STUB(SaveEm87Context) STUB(_CIpow) STUB(__eCommonExceptions)