mirror of
https://github.com/mpv-player/mpv
synced 2025-02-21 07:16:56 +00:00
KERNEL32 fix for ivvideo and strncmp for U263
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2669 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2fde21b8c9
commit
6b3ac18e85
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user