mirror of
https://github.com/wiiu-env/homebrew_on_menu_plugin.git
synced 2024-11-25 11:56:53 +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) {
|
if (handle_wrapper_slot < 0) {
|
||||||
DEBUG_FUNCTION_LINE("No free slot");
|
DEBUG_FUNCTION_LINE("No free slot");
|
||||||
RL_FileClose(out_handle);
|
RL_FileClose(out_handle);
|
||||||
|
unmountRomfs(id);
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
gFileHandleWrapper[handle_wrapper_slot].handle = out_handle;
|
gFileHandleWrapper[handle_wrapper_slot].handle = out_handle;
|
||||||
|
Loading…
Reference in New Issue
Block a user