mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-22 17:19:18 +01:00
coreinit: Return error code instead of success in Acquire failure (#260)
Spotted by @Fs00 It's currently not known if any games are affected by this
This commit is contained in:
parent
664d7ee902
commit
63206eb9a8
@ -94,14 +94,13 @@ namespace coreinit
|
||||
RPLLoader_Link();
|
||||
RPLLoader_CallEntrypoints();
|
||||
rplHandle = RPLLoader_GetHandleByModuleName(libName);
|
||||
if (rplHandle == RPL_INVALID_HANDLE)
|
||||
rplHandle = 0;
|
||||
}
|
||||
|
||||
*moduleHandleOut = rplHandle;
|
||||
// return module not found error code
|
||||
if (rplHandle == RPL_INVALID_HANDLE)
|
||||
return 0xFFFCFFE9;
|
||||
*moduleHandleOut = 0;
|
||||
else
|
||||
*moduleHandleOut = rplHandle;
|
||||
if (rplHandle == RPL_INVALID_HANDLE)
|
||||
return 0xFFFCFFE9; // module not found
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user