comparison loader/win32.c @ 2668:a9b786102a77

KERNEL32 fix for ivvideo and strncmp for U263
author arpi
date Sun, 04 Nov 2001 00:46:12 +0000
parents 958d10763c34
children d98d6651ffb1
comparison
equal deleted inserted replaced
2667:a17fcca740ff 2668:a9b786102a77
1959 if (!name) 1959 if (!name)
1960 return -1; 1960 return -1;
1961 // we skip to the last backslash 1961 // we skip to the last backslash
1962 // this is effectively eliminating weird characters in 1962 // this is effectively eliminating weird characters in
1963 // the text output windows 1963 // the text output windows
1964
1965 if (strcmp(name, "KERNEL32") == 0){
1966 printf("expLoadLibraryA('%s')\n",name);
1967 return (int) LookupExternal(name, 0);
1968 }
1964 1969
1965 lastbc = strrchr(name, '\\'); 1970 lastbc = strrchr(name, '\\');
1966 if (lastbc) 1971 if (lastbc)
1967 { 1972 {
1968 int i; 1973 int i;
2305 return result; 2310 return result;
2306 } 2311 }
2307 int expstrcmp(const char* str1, const char* str2) 2312 int expstrcmp(const char* str1, const char* str2)
2308 { 2313 {
2309 int result=strcmp(str1, str2); 2314 int result=strcmp(str1, str2);
2315 dbgprintf("strcmp(0x%x='%s', 0x%x='%s') => %d\n", str1, str1, str2, str2, result);
2316 return result;
2317 }
2318 int expstrncmp(const char* str1, const char* str2,int x)
2319 {
2320 int result=strncmp(str1, str2,x);
2310 dbgprintf("strcmp(0x%x='%s', 0x%x='%s') => %d\n", str1, str1, str2, str2, result); 2321 dbgprintf("strcmp(0x%x='%s', 0x%x='%s') => %d\n", str1, str1, str2, str2, result);
2311 return result; 2322 return result;
2312 } 2323 }
2313 int expstrcat(char* str1, const char* str2) 2324 int expstrcat(char* str1, const char* str2)
2314 { 2325 {
3133 FF(strrchr, -1) 3144 FF(strrchr, -1)
3134 FF(strchr, -1) 3145 FF(strchr, -1)
3135 FF(strlen, -1) 3146 FF(strlen, -1)
3136 FF(strcpy, -1) 3147 FF(strcpy, -1)
3137 FF(strcmp, -1) 3148 FF(strcmp, -1)
3149 FF(strncmp, -1)
3138 FF(strcat, -1) 3150 FF(strcat, -1)
3139 FF(isalnum, -1) 3151 FF(isalnum, -1)
3140 FF(memmove, -1) 3152 FF(memmove, -1)
3141 FF(memcmp, -1) 3153 FF(memcmp, -1)
3142 FF(time, -1) 3154 FF(time, -1)