From cf5615c21c75088c13e14e7b0099ff442ff3c145 Mon Sep 17 00:00:00 2001 From: silverf0x Date: Tue, 7 Nov 2017 23:28:12 +0100 Subject: [PATCH] Fix unreachable code in RpcCoreManager.c when building the x86 version --- RpcView/RpcCoreManager.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/RpcView/RpcCoreManager.c b/RpcView/RpcCoreManager.c index 0cd23aa..fdd48da 100644 --- a/RpcView/RpcCoreManager.c +++ b/RpcView/RpcCoreManager.c @@ -109,17 +109,14 @@ VOID* __fastcall RpcCoreInit() } pRpcCoreManager->pNativeCoreCtxt = pRpcCoreManager->pNativeCore->RpcCoreInitFn(); #ifdef _WIN64 - if (!LoadCoreEngine(&pRpcCoreManager->pWow64Core, &pRpcCoreManager->pWow64CoreCtxt, TRUE)) goto Cleanup; + if (!LoadCoreEngine(&pRpcCoreManager->pWow64Core, &pRpcCoreManager->pWow64CoreCtxt, TRUE)) + { + OS_FREE(pRpcCoreManager); + return NULL; + } pRpcCoreManager->pWow64CoreCtxt = pRpcCoreManager->pWow64Core->RpcCoreInitFn(); #endif -End: return (pRpcCoreManager); -#ifdef _WIN64 -Cleanup: -#endif - OS_FREE(pRpcCoreManager); - pRpcCoreManager = NULL; - goto End; } //-----------------------------------------------------------------------------