changeset 3672:1d48df12001b

fixes for vdub plugin support - by Fredrik Kuivinen <freku045@student.liu.se>
author arpi
date Sun, 23 Dec 2001 16:14:13 +0000
parents e84d8f81a120
children 34d1094512d6
files loader/win32.c
diffstat 1 files changed, 30 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/loader/win32.c	Sun Dec 23 15:55:11 2001 +0000
+++ b/loader/win32.c	Sun Dec 23 16:14:13 2001 +0000
@@ -522,7 +522,7 @@
     }
     if(!result)
     {
-	if(strcasecmp(name, "kernel32")==0)
+	if(name && strcasecmp(name, "kernel32")==0)
 	    result=MODULE_HANDLE_kernel32;
     }
     dbgprintf("GetModuleHandleA('%s') => 0x%x\n", name, result);
@@ -3300,6 +3300,24 @@
     dbgprintf("isalnum(0x%x='%c' => %d\n", c, c, result);
     return result;
 }
+static int expisspace(int c)
+{
+    int result= (int) isspace(c);
+    dbgprintf("isspace(0x%x='%c' => %d\n", c, c, result);
+    return result;
+}
+static int expisalpha(int c)
+{
+    int result= (int) isalpha(c);
+    dbgprintf("isalpha(0x%x='%c' => %d\n", c, c, result);
+    return result;
+}
+static int expisdigit(int c)
+{
+    int result= (int) isdigit(c);
+    dbgprintf("isdigit(0x%x='%c' => %d\n", c, c, result);
+    return result;
+}
 static void* expmemmove(void* dest, void* src, int n)
 {
     void* result = memmove(dest, src, n);
@@ -3318,6 +3336,12 @@
     dbgprintf("memcpy(0x%x, 0x%x, %d) => %p\n", dest, src, n, result);
     return result;
 }
+static void* expmemset(void* dest, int c, size_t n)
+{
+    void *result = memset(dest, c, n);
+    dbgprintf("memset(0x%x, %d, %d) => %p\n", dest, c, n, result);
+    return result;
+}
 static time_t exptime(time_t* t)
 {
     time_t result = time(t);
@@ -3624,8 +3648,13 @@
     FF(_strdup,-1)
     FF(_setjmp3,-1)
     FF(isalnum, -1)
+    FF(isspace, -1)
+    FF(isalpha, -1)
+    FF(isdigit, -1)
     FF(memmove, -1)
     FF(memcmp, -1)
+    FF(memset, -1)
+    FF(memcpy, -1)
     FF(time, -1)
     FF(rand, -1)
     FF(srand, -1)