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