Fix some mistakes in 2797540a

This commit is contained in:
fincs 2015-11-07 01:52:35 +01:00
parent 2797540a3d
commit 24a84a874f
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -22,7 +22,7 @@ Result camInit(void) {
}
if (R_FAILED(ret)) AtomicDecrement(&camRefCount);
return 0;
return ret;
}
void camExit(void) {

View File

@ -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);