mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-11-16 19:03:21 +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:
1 parent
664d7ee902
commit
63206eb9a8
1 file changed
+5
-6
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user