Updated.
This commit is contained in:
parent
f56737b579
commit
bf00a81579
|
@ -11,7 +11,8 @@
|
||||||
version to 0.1.1. Added a malloc-failure check in the Unix
|
version to 0.1.1. Added a malloc-failure check in the Unix
|
||||||
CD-ROM detection code.
|
CD-ROM detection code.
|
||||||
04032002 - PHYSFS_init always makes sure the calling thread initializes its
|
04032002 - PHYSFS_init always makes sure the calling thread initializes its
|
||||||
error state.
|
error state. Win32 codebase is updated with mutex implementation
|
||||||
|
(thanks, Greg!).
|
||||||
04022002 - Mac work continues. Found a bug where we put a double dir
|
04022002 - Mac work continues. Found a bug where we put a double dir
|
||||||
separator in if we had to resort to the fallback userdir (if
|
separator in if we had to resort to the fallback userdir (if
|
||||||
__PHYSFS_platformGetUserDir() returned NULL to calculateUserDir().
|
__PHYSFS_platformGetUserDir() returned NULL to calculateUserDir().
|
||||||
|
|
1
physfs.c
1
physfs.c
|
@ -404,6 +404,7 @@ int PHYSFS_init(const char *argv0)
|
||||||
|
|
||||||
baseDir = calculateBaseDir(argv0);
|
baseDir = calculateBaseDir(argv0);
|
||||||
BAIL_IF_MACRO(baseDir == NULL, NULL, 0);
|
BAIL_IF_MACRO(baseDir == NULL, NULL, 0);
|
||||||
|
|
||||||
ptr = __PHYSFS_platformRealPath(baseDir);
|
ptr = __PHYSFS_platformRealPath(baseDir);
|
||||||
free(baseDir);
|
free(baseDir);
|
||||||
BAIL_IF_MACRO(ptr == NULL, NULL, 0);
|
BAIL_IF_MACRO(ptr == NULL, NULL, 0);
|
||||||
|
|
Loading…
Reference in New Issue