OS/2: Fixed NULL pointer dereference.

This commit is contained in:
Ryan C. Gordon 2017-08-20 01:18:05 -04:00
parent 689333dc8f
commit eb75883226
1 changed files with 1 additions and 1 deletions

View File

@ -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);