summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mspdb.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mspdb.cpp b/src/mspdb.cpp
index 2e968f8..00684ed 100644
--- a/src/mspdb.cpp
+++ b/src/mspdb.cpp
@@ -96,7 +96,9 @@ bool tryLoadMsPdbCom(const char* mspdb, const char* path = 0)
unsigned long fetched;
auto result = query.CreateInstance(__uuidof(SetupConfiguration));
- if ((FAILED(result) && result != REGDB_E_CLASSNOTREG) || FAILED(query->EnumInstances(&instances)))
+ if (FAILED(result) || !query)
+ return false;
+ if (FAILED(query->EnumInstances(&instances)))
return false;
while (!modMsPdb)