mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Use tmemCloseHandle in nvInitialize uncoditionally
This commit is contained in:
parent
ceb76d5796
commit
a973bdbc26
@ -54,9 +54,11 @@ Result _nvInitialize(void) {
|
||||
|
||||
if (R_SUCCEEDED(rc))
|
||||
rc = _nvCmdInitialize(CUR_PROCESS_HANDLE, g_nvTransfermem.handle, tmem_size);
|
||||
|
||||
Result rc2 = tmemCloseHandle(&g_nvTransfermem);
|
||||
|
||||
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
|
||||
if (R_SUCCEEDED(rc))
|
||||
|
Loading…
Reference in New Issue
Block a user