diff --git a/ResourceFiles/ResourceFile.cc b/ResourceFiles/ResourceFile.cc index b516c735c5..cf8ea7a611 100644 --- a/ResourceFiles/ResourceFile.cc +++ b/ResourceFiles/ResourceFile.cc @@ -490,6 +490,8 @@ bool ResourceFile::write() hfs_format(pathstring.c_str(), 0, 0, path.stem().string().substr(0,27).c_str(), 0, NULL); hfsvol *vol = hfs_mount(pathstring.c_str(), 0, HFS_MODE_RDWR); + if(!vol) + return false; //hfs_setvol(vol, ) hfsfile *file = hfs_create(vol, (path.stem().string().substr(0,31)).c_str(), ((std::string)type).c_str(), ((std::string)creator).c_str());