Paul Gofman : winhttp: Use stricmp() instead of _strnicmp(..., -1).

Alexandre Julliard julliard at winehq.org
Fri Mar 27 16:14:37 CDT 2020


Module: wine
Branch: master
Commit: d7332c22dd05ef2d5aba3c4512ace5d440409316
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d7332c22dd05ef2d5aba3c4512ace5d440409316

Author: Paul Gofman <gofmanp at gmail.com>
Date:   Fri Mar 27 13:33:54 2020 +0300

winhttp: Use stricmp() instead of _strnicmp(..., -1).

Signed-off-by: Paul Gofman <gofmanp at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winhttp/session.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c
index e647d71faf..dabbe9b195 100644
--- a/dlls/winhttp/session.c
+++ b/dlls/winhttp/session.c
@@ -1395,7 +1395,7 @@ static BOOL is_domain_suffix( const char *domain, const char *suffix )
     int len_domain = strlen( domain ), len_suffix = strlen( suffix );
 
     if (len_suffix > len_domain) return FALSE;
-    if (!_strnicmp( domain + len_domain - len_suffix, suffix, -1 )) return TRUE;
+    if (!stricmp( domain + len_domain - len_suffix, suffix )) return TRUE;
     return FALSE;
 }
 




More information about the wine-cvs mailing list