From cda1c38bae8af6fe07ad41284f0ef0b7f51b1d25 Mon Sep 17 00:00:00 2001 From: Emanuele Aliberti Date: Sun, 12 Sep 1999 21:58:32 +0000 Subject: [PATCH] Some missing __stdcall added. Some missing unicode functions stubs added. RtlReAllocHeap should be RtlReAllocateHeap. svn path=/trunk/; revision=666 --- reactos/lib/ntdll/rtl/heap.c | 18 +++++--- reactos/lib/ntdll/rtl/mem.c | 12 +++-- reactos/lib/ntdll/rtl/unicode.c | 78 ++++++++++++++++++++++++++++++++- 3 files changed, 98 insertions(+), 10 deletions(-) diff --git a/reactos/lib/ntdll/rtl/heap.c b/reactos/lib/ntdll/rtl/heap.c index 814851bd348..fe8ccd039cd 100644 --- a/reactos/lib/ntdll/rtl/heap.c +++ b/reactos/lib/ntdll/rtl/heap.c @@ -997,13 +997,19 @@ BOOLEAN STDCALL RtlFreeHeap( * RETURNS * Pointer to reallocated memory block * NULL: Failure + * + * REVISIONS + * Renamed RtlReAllocateHeap as in NT */ -LPVOID WINAPI RtlReAllocHeap( - HANDLE heap, /* [in] Handle of heap block */ - DWORD flags, /* [in] Heap reallocation flags */ - LPVOID ptr, /* [in] Address of memory to reallocate */ - DWORD size /* [in] Number of bytes to reallocate */ -) { +LPVOID +WINAPI +RtlReAllocateHeap ( + HANDLE heap, /* [in] Handle of heap block */ + DWORD flags, /* [in] Heap reallocation flags */ + LPVOID ptr, /* [in] Address of memory to reallocate */ + DWORD size /* [in] Number of bytes to reallocate */ + ) +{ ARENA_INUSE *pArena; DWORD oldSize; HEAP *heapPtr; diff --git a/reactos/lib/ntdll/rtl/mem.c b/reactos/lib/ntdll/rtl/mem.c index a459601a084..fd26429373d 100644 --- a/reactos/lib/ntdll/rtl/mem.c +++ b/reactos/lib/ntdll/rtl/mem.c @@ -56,17 +56,23 @@ VOID RtlCopyMemory(VOID* Destination, CONST VOID* Source, ULONG Length) DPRINT("*Destination %x\n",*(PULONG)Destination); } -VOID RtlFillMemory(PVOID Destination, ULONG Length, UCHAR Fill) +VOID +STDCALL +RtlFillMemory(PVOID Destination, ULONG Length, UCHAR Fill) { memset(Destination,Fill,Length); } -VOID RtlZeroMemory(PVOID Destination, ULONG Length) +VOID +STDCALL +RtlZeroMemory(PVOID Destination, ULONG Length) { RtlFillMemory(Destination,Length,0); } -VOID RtlMoveMemory(PVOID Destination, +VOID +STDCALL +RtlMoveMemory(PVOID Destination, CONST VOID* Source, ULONG Length) { diff --git a/reactos/lib/ntdll/rtl/unicode.c b/reactos/lib/ntdll/rtl/unicode.c index b649d2447c4..cdd98470d3f 100644 --- a/reactos/lib/ntdll/rtl/unicode.c +++ b/reactos/lib/ntdll/rtl/unicode.c @@ -1,4 +1,5 @@ -/* +/* $Id: unicode.c,v 1.7 1999/09/12 21:58:32 ea Exp $ + * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel * FILE: ntoskrnl/rtl/unicode.c @@ -545,3 +546,78 @@ VOID RtlUpcaseString(IN OUT PSTRING DestinationString, DestinationString->Buffer-=len; SourceString->Buffer-=len; } + +/*---*/ + +#include + +WCHAR +STDCALL +RtlAnsiCharToUnicodeChar ( + CHAR AnsiChar + ) +{ + /* FIXME: it should probably call RtlMultiByteToUnicodeN + * with length==1. + */ + return (WCHAR) AnsiChar; +} + + + +VOID +STDCALL +RtlMultiByteToUnicodeN ( + VOID + ) +{ +} + + +VOID +STDCALL +RtlUnicodeToMultiByteN ( + VOID + ) +{ +} + + +ULONG +STDCALL +RtlUnicodeToMultiByteSize ( + VOID + ) +{ + return 0; +} + + +VOID +STDCALL +RtlUnwind ( + VOID + ) +{ +} + + +VOID +STDCALL +RtlUpcaseUnicodeChar ( + VOID + ) +{ +} + + +VOID +STDCALL +RtlUpcaseUnicodeToMultiByteN ( + VOID + ) +{ +} + + +/* EOF */