mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Some missing __stdcall added.
Some missing unicode functions stubs added. RtlReAllocHeap should be RtlReAllocateHeap. svn path=/trunk/; revision=666
This commit is contained in:
parent
d82310b692
commit
cda1c38bae
3 changed files with 98 additions and 10 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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.h>
|
||||
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue