Rob Shearman : cabinet: Replace strcasecmp call with lstrcmpiA as strcasecmp isn' t portable and doesn't take into account the current codepage.

Alexandre Julliard julliard at winehq.org
Mon Feb 18 08:50:32 CST 2008


Module: wine
Branch: master
Commit: 903a486dc0efce1dfae4bf0f66447f63e6312255
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=903a486dc0efce1dfae4bf0f66447f63e6312255

Author: Rob Shearman <rob at codeweavers.com>
Date:   Sat Feb 16 15:35:43 2008 +0000

cabinet: Replace strcasecmp call with lstrcmpiA as strcasecmp isn't portable and doesn't take into account the current codepage.

---

 dlls/cabinet/fdi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c
index a0bb64a..468a68d 100644
--- a/dlls/cabinet/fdi.c
+++ b/dlls/cabinet/fdi.c
@@ -2229,7 +2229,7 @@ static int fdi_decomp(const struct fdi_file *fi, int savemode, fdi_decomp_state
         for (file = cab->firstfile; (file); file = file->next) {
           if ((file->index & cffileCONTINUED_FROM_PREV) == cffileCONTINUED_FROM_PREV) {
             /* check to ensure a real match */
-            if (strcasecmp(fi->filename, file->filename) == 0) {
+            if (lstrcmpiA(fi->filename, file->filename) == 0) {
               success = TRUE;
               if (PFDI_SEEK(CAB(hfdi), cab->cabhf, cab->firstfol->offset, SEEK_SET) == -1)
                 return DECR_INPUT;




More information about the wine-cvs mailing list