From 14507570059b5439b0f7f6e8a06de6da8e38cf15 Mon Sep 17 00:00:00 2001 From: ndeadly <24677491+ndeadly@users.noreply.github.com> Date: Wed, 1 Feb 2023 21:41:59 +0100 Subject: [PATCH] hiddbg: remove implicit transfer memory creation --- nx/source/services/hiddbg.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nx/source/services/hiddbg.c b/nx/source/services/hiddbg.c index ca0bd148..9b82709e 100644 --- a/nx/source/services/hiddbg.c +++ b/nx/source/services/hiddbg.c @@ -478,10 +478,7 @@ Result hiddbgAttachHdlsWorkBuffer(HiddbgHdlsSessionId *session_id, void *buffer, if (g_hiddbgHdlsInitialized) return MAKERESULT(Module_Libnx, LibnxError_AlreadyInitialized); - if (buffer==NULL) - rc = tmemCreate(&g_hiddbgHdlsTmem, 0x1000, Perm_Rw); - else - rc = tmemCreateFromMemory(&g_hiddbgHdlsTmem, buffer, size, Perm_Rw); + rc = tmemCreateFromMemory(&g_hiddbgHdlsTmem, buffer, size, Perm_Rw); if (R_FAILED(rc)) return rc; rc = _hiddbgAttachHdlsWorkBuffer(session_id, &g_hiddbgHdlsTmem);