diff options
author | Rahul Kumar <rahku@microsoft.com> | 2015-09-25 14:03:54 -0700 |
---|---|---|
committer | Matt Ellis <matell@microsoft.com> | 2015-09-25 17:24:02 -0700 |
commit | 6ac3cef4e3b82b3b9fbbce50a4a762e576464634 (patch) | |
tree | e4740ff710922047a7359b0927274988ef14c052 /src/vm/compile.cpp | |
parent | f0c1382fd5c65e44585b84a4bf3dd8ec86d73c6c (diff) | |
download | coreclr-6ac3cef4e3b82b3b9fbbce50a4a762e576464634.tar.gz coreclr-6ac3cef4e3b82b3b9fbbce50a4a762e576464634.tar.bz2 coreclr-6ac3cef4e3b82b3b9fbbce50a4a762e576464634.zip |
Fix for 134453: fix prefast warnings
[tfs-changeset: 1529946]
Diffstat (limited to 'src/vm/compile.cpp')
-rw-r--r-- | src/vm/compile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vm/compile.cpp b/src/vm/compile.cpp index cf1d399a13..0cb474e2f8 100644 --- a/src/vm/compile.cpp +++ b/src/vm/compile.cpp @@ -759,9 +759,9 @@ HRESULT CEECompileInfo::LoadTypeRefWinRT( Assembly *pAssembly; mdToken tkResolutionScope; - pAssemblyImport->GetResolutionScopeOfTypeRef(ref, &tkResolutionScope); - - if(TypeFromToken(tkResolutionScope) == mdtAssemblyRef) + if(FAILED(pAssemblyImport->GetResolutionScopeOfTypeRef(ref, &tkResolutionScope))) + hr = S_FALSE; + else if(TypeFromToken(tkResolutionScope) == mdtAssemblyRef) { DWORD dwAssemblyRefFlags; IfFailThrow(pAssemblyImport->GetAssemblyRefProps(tkResolutionScope, NULL, NULL, |