summaryrefslogtreecommitdiff
path: root/src/ildasm
diff options
context:
space:
mode:
authorManu <manu-silicon@users.noreply.github.com>2016-02-16 09:09:14 +0900
committerManu <manu-silicon@users.noreply.github.com>2016-02-17 09:53:09 +0900
commitf7eebaa2c75ec211faf322445b1b1fc6b96b72b2 (patch)
tree7fad213d32c9f1719b52921fe2762b86ac15e121 /src/ildasm
parent5a26372691fea92f1ef328f287e1e37243af3e34 (diff)
downloadcoreclr-f7eebaa2c75ec211faf322445b1b1fc6b96b72b2.tar.gz
coreclr-f7eebaa2c75ec211faf322445b1b1fc6b96b72b2.tar.bz2
coreclr-f7eebaa2c75ec211faf322445b1b1fc6b96b72b2.zip
Fix Init to return False when not being able to load executable
Diffstat (limited to 'src/ildasm')
-rw-r--r--src/ildasm/dasm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ildasm/dasm.cpp b/src/ildasm/dasm.cpp
index 6941753444..634af2b987 100644
--- a/src/ildasm/dasm.cpp
+++ b/src/ildasm/dasm.cpp
@@ -339,6 +339,10 @@ BOOL Init()
#ifdef FEATURE_CORECLR
#ifdef FEATURE_PAL
g_loader = CoreCLRLoader::Create(g_pszExeFile);
+ if (g_loader == NULL)
+ {
+ return FALSE;
+ }
metaDataGetDispenser = (MetaDataGetDispenserFunc)g_loader->LoadFunction("MetaDataGetDispenser");
getMetaDataInternalInterface = (GetMetaDataInternalInterfaceFunc)g_loader->LoadFunction("GetMetaDataInternalInterface");
getMetaDataInternalInterfaceFromPublic = (GetMetaDataInternalInterfaceFromPublicFunc)g_loader->LoadFunction("GetMetaDataInternalInterfaceFromPublic");