mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-23 00:34:22 +00:00
add a missing error check (one of many)
This commit is contained in:
parent
5961d1884d
commit
c01a99637a
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user