mirror of
https://github.com/wiiu-env/homebrew_on_menu_plugin.git
synced 2024-11-22 02:29:15 +01:00
Unmount the romfs on file reading error
This commit is contained in:
parent
d2c53b77af
commit
8c107d78a3
@ -53,6 +53,7 @@ int OpenFileForID(int id, const char *filepath, int *handle) {
|
||||
if (handle_wrapper_slot < 0) {
|
||||
DEBUG_FUNCTION_LINE("No free slot");
|
||||
RL_FileClose(out_handle);
|
||||
unmountRomfs(id);
|
||||
return -2;
|
||||
}
|
||||
gFileHandleWrapper[handle_wrapper_slot].handle = out_handle;
|
||||
|
Loading…
Reference in New Issue
Block a user