Fixed cut-and-paste error in malloc() failure test (thanks, Tolga!).
This commit is contained in:
parent
f871802f51
commit
4d567a0d2f
|
@ -115,6 +115,9 @@ ISO9660 archiver:
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
Steven Fuller
|
Steven Fuller
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
Tolga Dalman
|
||||||
|
|
||||||
Other stuff:
|
Other stuff:
|
||||||
Your name here! Patches go to icculus@icculus.org ...
|
Your name here! Patches go to icculus@icculus.org ...
|
||||||
|
|
||||||
|
|
|
@ -234,7 +234,7 @@ PHYSFS_Io *__PHYSFS_createNativeIo(const char *path, const int mode)
|
||||||
info = (NativeIoInfo *) allocator.Malloc(sizeof (NativeIoInfo));
|
info = (NativeIoInfo *) allocator.Malloc(sizeof (NativeIoInfo));
|
||||||
GOTO_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, createNativeIo_failed);
|
GOTO_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, createNativeIo_failed);
|
||||||
pathdup = (char *) allocator.Malloc(strlen(path) + 1);
|
pathdup = (char *) allocator.Malloc(strlen(path) + 1);
|
||||||
GOTO_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, createNativeIo_failed);
|
GOTO_IF_MACRO(pathdup == NULL, ERR_OUT_OF_MEMORY, createNativeIo_failed);
|
||||||
|
|
||||||
if (mode == 'r')
|
if (mode == 'r')
|
||||||
handle = __PHYSFS_platformOpenRead(path);
|
handle = __PHYSFS_platformOpenRead(path);
|
||||||
|
|
Loading…
Reference in New Issue