changeset 121:94a1a9f52050

added RtlMoveMem (for CRAM support)
author arpi_esp
date Sat, 17 Mar 2001 22:35:29 +0000
parents 93ea0c6aae7f
children f8f938851729
files loader/win32.c
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/loader/win32.c	Sat Mar 17 19:19:18 2001 +0000
+++ b/loader/win32.c	Sat Mar 17 22:35:29 2001 +0000
@@ -1055,6 +1055,27 @@
     return (LPWSTR)envs;
 }
 
+void * WINAPI expRtlZeroMemory(void *p, size_t len)
+{
+    void* result=memset(p,0,len);
+    dbgprintf("RtlZeroMemory(0x%x, len %d) => 0x%x\n",p,len,result);
+    return result;
+}
+void * WINAPI expRtlMoveMemory(void *dst, void *src, size_t len)
+{
+    void* result=memmove(dst,src,len);
+    dbgprintf("RtlMoveMemory (dest 0x%x, src 0x%x, len %d) => 0x%x\n",dst,src,len,result);
+    return result;
+}
+
+void * WINAPI expRtlFillMemory(void *p, int ch, size_t len)
+{
+    void* result=memset(p,ch,len);
+    dbgprintf("RtlFillMemory(0x%x, char 0x%x, len %d) => 0x%x\n",p,ch,len,result);
+    return result;
+}
+
+
 int WINAPI expFreeEnvironmentStringsW(short* strings)
 {
     dbgprintf("FreeEnvStringsW\n");
@@ -1569,6 +1590,9 @@
 FF(GetLocalTime, -1)
 FF(GetSystemTime, -1)
 FF(GetEnvironmentVariableA, -1)
+FF(RtlZeroMemory,-1)
+FF(RtlMoveMemory,-1)
+FF(RtlFillMemory,-1)
 };
 
 struct exports exp_msvcrt[]={