summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--loader/win32.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/loader/win32.c b/loader/win32.c
index a8b8a441eb..469ba57c4a 100644
--- a/loader/win32.c
+++ b/loader/win32.c
@@ -1961,6 +1961,11 @@ int WINAPI expLoadLibraryA(char* name)
// we skip to the last backslash
// this is effectively eliminating weird characters in
// the text output windows
+
+ if (strcmp(name, "KERNEL32") == 0){
+ printf("expLoadLibraryA('%s')\n",name);
+ return (int) LookupExternal(name, 0);
+ }
lastbc = strrchr(name, '\\');
if (lastbc)
@@ -2310,6 +2315,12 @@ int expstrcmp(const char* str1, const char* str2)
dbgprintf("strcmp(0x%x='%s', 0x%x='%s') => %d\n", str1, str1, str2, str2, result);
return result;
}
+int expstrncmp(const char* str1, const char* str2,int x)
+{
+ int result=strncmp(str1, str2,x);
+ dbgprintf("strcmp(0x%x='%s', 0x%x='%s') => %d\n", str1, str1, str2, str2, result);
+ return result;
+}
int expstrcat(char* str1, const char* str2)
{
int result= (int) strcat(str1, str2);
@@ -3135,6 +3146,7 @@ FF(strchr, -1)
FF(strlen, -1)
FF(strcpy, -1)
FF(strcmp, -1)
+FF(strncmp, -1)
FF(strcat, -1)
FF(isalnum, -1)
FF(memmove, -1)