Mercurial > mplayer.hg
changeset 2668:a9b786102a77
KERNEL32 fix for ivvideo and strncmp for U263
author | arpi |
---|---|
date | Sun, 04 Nov 2001 00:46:12 +0000 |
parents | a17fcca740ff |
children | 476b9b3b91be |
files | loader/win32.c |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/loader/win32.c Sun Nov 04 00:38:32 2001 +0000 +++ b/loader/win32.c Sun Nov 04 00:46:12 2001 +0000 @@ -1961,6 +1961,11 @@ // 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 @@ 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(strlen, -1) FF(strcpy, -1) FF(strcmp, -1) +FF(strncmp, -1) FF(strcat, -1) FF(isalnum, -1) FF(memmove, -1)