wininet: Make the passive mode response check case insensitive.

Francois Gouget fgouget at free.fr
Thu Jun 7 05:01:48 CDT 2007


On Wed, 6 Jun 2007, Hans Leidekker wrote:
[...]
> Changelog
>   Make the passive mode response check case insensitive.

--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
[...]
-           if (strncmp(p, "Entering Passive Mode", 21))
+           if (strncasecmp(p, "Entering Passive Mode", 21))

You should not be using str*casecmp() in Wine (because it's a Unix 
function, and because it uses the wrong locale). Try CompareString() 
instead.

-- 
Francois Gouget <fgouget at free.fr>              http://fgouget.free.fr/
                     Linux: the choice of a GNU generation



More information about the wine-devel mailing list