cabinet: Replace strcasecmp call with lstrcmpiA as strcasecmp isn't portable and doesn't take into account the current codepage.
This commit is contained in:
parent
3bd142e907
commit
903a486dc0
|
@ -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) {
|
for (file = cab->firstfile; (file); file = file->next) {
|
||||||
if ((file->index & cffileCONTINUED_FROM_PREV) == cffileCONTINUED_FROM_PREV) {
|
if ((file->index & cffileCONTINUED_FROM_PREV) == cffileCONTINUED_FROM_PREV) {
|
||||||
/* check to ensure a real match */
|
/* check to ensure a real match */
|
||||||
if (strcasecmp(fi->filename, file->filename) == 0) {
|
if (lstrcmpiA(fi->filename, file->filename) == 0) {
|
||||||
success = TRUE;
|
success = TRUE;
|
||||||
if (PFDI_SEEK(CAB(hfdi), cab->cabhf, cab->firstfol->offset, SEEK_SET) == -1)
|
if (PFDI_SEEK(CAB(hfdi), cab->cabhf, cab->firstfol->offset, SEEK_SET) == -1)
|
||||||
return DECR_INPUT;
|
return DECR_INPUT;
|
||||||
|
|
Loading…
Reference in New Issue