Parcourir la source

OS/2: Fixed NULL pointer dereference.

Ryan C. Gordon il y a 8 ans
Parent
commit
eb75883226
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/physfs_platform_os2.c

+ 1 - 1
src/physfs_platform_os2.c

@@ -203,7 +203,7 @@ static char *cvtPathToCorrectCase(char *buf)
                 int cmp;
                 char *utf8 = cvtCodepageToUtf8(fb.achName);
                 if (!utf8) /* ugh, maybe we'll get lucky with the C runtime. */
-                    cmp = stricmp(utf8, fname);
+                    cmp = stricmp(fb.achName, fname);
                 else
                 {
                     cmp = PHYSFS_utf8stricmp(utf8, fname);