author | Ryan C. Gordon <icculus@icculus.org> |
Thu, 22 May 2003 04:01:19 +0000 | |
changeset 568 | 58a750d64f91 |
parent 567 | d243c6eb044f |
child 569 | c83c96f2e1d9 |
platform/win32.c | file | annotate | diff | comparison | revisions |
--- a/platform/win32.c Sun May 18 07:52:53 2003 +0000 +++ b/platform/win32.c Thu May 22 04:01:19 2003 +0000 @@ -300,8 +300,8 @@ char *__PHYSFS_platformCalcBaseDir(const char *argv0) { - if (strchr(argv0, '\\') != NULL) /* default behaviour can handle this. */ - return(NULL); + if ((argv0 != NULL) && (strchr(argv0, '\\') != NULL)) + return(NULL); /* default behaviour can handle this. */ return(getExePath(argv0)); } /* __PHYSFS_platformCalcBaseDir */