mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
Use tmemCloseHandle in nvInitialize uncoditionally
This commit is contained in:
parent
ceb76d5796
commit
a973bdbc26
@ -55,8 +55,10 @@ Result _nvInitialize(void) {
|
|||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
rc = _nvCmdInitialize(CUR_PROCESS_HANDLE, g_nvTransfermem.handle, tmem_size);
|
rc = _nvCmdInitialize(CUR_PROCESS_HANDLE, g_nvTransfermem.handle, tmem_size);
|
||||||
|
|
||||||
|
Result rc2 = tmemCloseHandle(&g_nvTransfermem);
|
||||||
|
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
rc = tmemCloseHandle(&g_nvTransfermem);
|
rc = rc2;
|
||||||
|
|
||||||
// Clone the session handle - the cloned session is used to execute certain commands in parallel
|
// Clone the session handle - the cloned session is used to execute certain commands in parallel
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
|
Loading…
Reference in New Issue
Block a user