add a missing error check (one of many)

This commit is contained in:
Wolfgang Thaller 2017-10-02 23:13:07 +02:00
parent 5961d1884d
commit c01a99637a

View File

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