Fix unreachable code in RpcCoreManager.c when building the x86 version

This commit is contained in:
silverf0x 2017-11-07 23:28:12 +01:00
parent a5e4fd2c43
commit cf5615c21c
1 changed files with 5 additions and 8 deletions

View File

@ -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;
}
//-----------------------------------------------------------------------------