mirror of
https://github.com/wiiu-env/ContentRedirectionModule.git
synced 2025-05-17 09:47:00 +02:00
Fix CRRemoveFSLayer return value
This commit is contained in:
parent
f5266db613
commit
eb0ff82425
@ -131,7 +131,7 @@ ContentRedirectionApiErrorType CRAddFSLayer(CRLayerHandle *handle, const char *l
|
|||||||
}
|
}
|
||||||
|
|
||||||
ContentRedirectionApiErrorType CRRemoveFSLayer(CRLayerHandle handle) {
|
ContentRedirectionApiErrorType CRRemoveFSLayer(CRLayerHandle handle) {
|
||||||
if (remove_locked_first_if(fsLayerMutex, fsLayers, [handle](auto &cur) { return (CRLayerHandle) cur->getHandle() == handle; })) {
|
if (!remove_locked_first_if(fsLayerMutex, fsLayers, [handle](auto &cur) { return (CRLayerHandle) cur->getHandle() == handle; })) {
|
||||||
DEBUG_FUNCTION_LINE_WARN("CONTENT_REDIRECTION_API_ERROR_LAYER_NOT_FOUND for handle %08X", handle);
|
DEBUG_FUNCTION_LINE_WARN("CONTENT_REDIRECTION_API_ERROR_LAYER_NOT_FOUND for handle %08X", handle);
|
||||||
return CONTENT_REDIRECTION_API_ERROR_LAYER_NOT_FOUND;
|
return CONTENT_REDIRECTION_API_ERROR_LAYER_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user