diff --git a/src/plugins/debugger/cdb/cdbdebugeventcallback.cpp b/src/plugins/debugger/cdb/cdbdebugeventcallback.cpp index 4322ac74c7f73bd2a576d58ff1713e793bf99333..ac2e3ddb53851805be797f9e6c05a39c716f8d85 100644 --- a/src/plugins/debugger/cdb/cdbdebugeventcallback.cpp +++ b/src/plugins/debugger/cdb/cdbdebugeventcallback.cpp @@ -183,10 +183,11 @@ STDMETHODIMP CdbDebugEventCallback::UnloadModule( __in ULONG64 BaseOffset ) { - Q_UNUSED(ImageBaseName) Q_UNUSED(BaseOffset) if (debugCDB > 1) qDebug() << Q_FUNC_INFO << ImageBaseName; + if (!ImageBaseName) + return S_OK; m_pEngine->m_d->handleModuleUnload(QString::fromUtf16(reinterpret_cast<const ushort *>(ImageBaseName))); handleModuleUnload(); m_pEngine->m_d->updateModules();