From f9d38856f335c4cb0ed3c7253d9319a965815af2 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 20 Jan 2019 16:58:35 -0800 Subject: [PATCH] Update for MitM API change --- include/stratosphere/mitm/mitm_server.hpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/stratosphere/mitm/mitm_server.hpp b/include/stratosphere/mitm/mitm_server.hpp index 0529c851..8a15533f 100644 --- a/include/stratosphere/mitm/mitm_server.hpp +++ b/include/stratosphere/mitm/mitm_server.hpp @@ -31,17 +31,11 @@ class MitmServer : public IWaitable { public: MitmServer(Handle *out_query_h, const char *service_name, unsigned int max_s) : port_handle(0), max_sessions(max_s) { - Handle tmp_hnd; Result rc = smMitMInitialize(); if (R_FAILED(rc)) { fatalSimple(rc); } - if (R_SUCCEEDED((rc = smGetServiceOriginal(&tmp_hnd, smEncodeName(service_name))))) { - svcCloseHandle(tmp_hnd); - } else { - fatalSimple(rc); - } strncpy(mitm_name, service_name, 8); mitm_name[8] = '\x00'; if (R_FAILED((rc = smMitMInstall(&this->port_handle, out_query_h, mitm_name)))) {