Fix some mistakes in 2797540a
This commit is contained in:
parent
2797540a3d
commit
24a84a874f
@ -495,7 +495,7 @@ Result aptInit(void)
|
||||
}
|
||||
|
||||
aptOpenSession();
|
||||
if(R_FAILED(ret=APT_NotifyToWait(currentAppId)))return ret;
|
||||
if(R_FAILED(ret=APT_NotifyToWait(currentAppId)))goto _fail;
|
||||
aptCloseSession();
|
||||
|
||||
// create APT event handler thread
|
||||
|
@ -22,7 +22,7 @@ Result camInit(void) {
|
||||
}
|
||||
if (R_FAILED(ret)) AtomicDecrement(&camRefCount);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
void camExit(void) {
|
||||
|
@ -152,7 +152,7 @@ Result csndInit(void)
|
||||
memset((void*)csndSharedMem, 0, csndSharedMemSize);
|
||||
|
||||
ret = CSND_AcquireSoundChannels(&csndChannels);
|
||||
if (R_FAILED(ret)) return 0;
|
||||
if (R_SUCCEEDED(ret)) return 0;
|
||||
|
||||
cleanup2:
|
||||
svcCloseHandle(csndSharedMemBlock);
|
||||
|
Loading…
Reference in New Issue
Block a user