# HG changeset patch # User arpi # Date 1009124053 0 # Node ID 1d48df12001b7f3f82e6146059525b4018b26c79 # Parent e84d8f81a120cf31fae0726c858208feb1af1d9a fixes for vdub plugin support - by Fredrik Kuivinen diff -r e84d8f81a120 -r 1d48df12001b loader/win32.c --- 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)