diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-11 22:58:14 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-11 22:58:14 +0000 |
commit | b4caa850133c79a384c470e5575c6159a689d610 (patch) | |
tree | 894e4a9d2b8aa8c77c212661f5aedb450b03c6e0 /loader/ext.c | |
parent | d80b170960adeff96ca05397329ee9ca9528c014 (diff) | |
download | mpv-b4caa850133c79a384c470e5575c6159a689d610.tar.bz2 mpv-b4caa850133c79a384c470e5575c6159a689d610.tar.xz |
avifile merge. kabi: indent changes really suxxxx
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3466 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/ext.c')
-rw-r--r-- | loader/ext.c | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/loader/ext.c b/loader/ext.c index ff69e0818f..0b747b7f0c 100644 --- a/loader/ext.c +++ b/loader/ext.c @@ -5,7 +5,7 @@ * * ********************************************************/ -#include <config.h> +#include "config.h" #include <stdio.h> #include <stdlib.h> #ifdef HAVE_MALLOC_H @@ -17,6 +17,7 @@ #include <fcntl.h> #include <string.h> #include <stdarg.h> +#include <ctype.h> #include <wine/windef.h> #include <wine/winbase.h> #include <wine/debugtools.h> @@ -146,6 +147,7 @@ LPSTR WINAPI lstrcpynWtoA(LPSTR dest, LPCWSTR src, INT count) } return result; } +/* i stands here for ignore case! */ int wcsnicmp(const unsigned short* s1, const unsigned short* s2, int n) { /* @@ -156,17 +158,21 @@ int wcsnicmp(const unsigned short* s1, const unsigned short* s2, int n) */ while(n>0) { - if(*s1<*s2) - return -1; - else - if(*s1>*s2) - return 1; + if (((*s1 | *s2) & 0xff00) || toupper((char)*s1) != toupper((char)*s2)) + { + + if(*s1<*s2) + return -1; else - if(*s1==0) - return 0; - s1++; - s2++; - n--; + if(*s1>*s2) + return 1; + else + if(*s1==0) + return 0; + } + s1++; + s2++; + n--; } return 0; } |