summaryrefslogtreecommitdiff
path: root/src/dlls/mscorpe
diff options
context:
space:
mode:
authorKoundinya Veluri <kouvel@microsoft.com>2017-05-09 13:56:40 -0700
committerGitHub <noreply@github.com>2017-05-09 13:56:40 -0700
commitc8a37801f8483d05766e0bf053ffa41aaa155f2c (patch)
tree8e01a17aa262b0779668b845069bd57d2d50d67b /src/dlls/mscorpe
parent39a841c33a6ae70cc887ee9fa7cfdeb834c6ca59 (diff)
downloadcoreclr-c8a37801f8483d05766e0bf053ffa41aaa155f2c.tar.gz
coreclr-c8a37801f8483d05766e0bf053ffa41aaa155f2c.tar.bz2
coreclr-c8a37801f8483d05766e0bf053ffa41aaa155f2c.zip
Fix static analysis issues (#11466)
Fix static analysis issues
Diffstat (limited to 'src/dlls/mscorpe')
-rw-r--r--src/dlls/mscorpe/iceefilegen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dlls/mscorpe/iceefilegen.cpp b/src/dlls/mscorpe/iceefilegen.cpp
index f4323b9e8c..c48ae7e094 100644
--- a/src/dlls/mscorpe/iceefilegen.cpp
+++ b/src/dlls/mscorpe/iceefilegen.cpp
@@ -151,7 +151,9 @@ HRESULT ICeeFileGen::CreateCeeFileFromICeeGen(ICeeGen *pICeeGen, HCEEFILE *ceeFi
return E_POINTER;
CCeeGen *genFrom = reinterpret_cast<CCeeGen*>(pICeeGen);
CeeFileGenWriter *gen = NULL;
- if (FAILED(CeeFileGenWriter::CreateNewInstance(genFrom, gen, createFlags))) return FALSE;
+ HRESULT hr = CeeFileGenWriter::CreateNewInstance(genFrom, gen, createFlags);
+ if (FAILED(hr))
+ return hr;
TESTANDRETURN(gen != NULL, E_OUTOFMEMORY);
*ceeFile = gen;
return S_OK;