From 87dc2daa45d99beef448dad55345593e46b8306a Mon Sep 17 00:00:00 2001 From: Xusheng Date: Tue, 29 Oct 2024 17:27:51 +0800 Subject: [PATCH] Fix crash when attempting to install WinDbg/TTD in the free version. Fix https://github.com/Vector35/debugger/issues/601 --- ui/ui.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/ui.cpp b/ui/ui.cpp index 411910f..06385b6 100644 --- a/ui/ui.cpp +++ b/ui/ui.cpp @@ -862,6 +862,12 @@ void GlobalDebuggerUI::SetupMenu(UIContext* context) #ifdef WIN32 void GlobalDebuggerUI::installTTD(const UIActionContext& ctxt) { +#ifdef DEMO_EDITION + FreeVersionLimitation dialog("installing WinDbg/TTD automatically.\n" + "Please refer to the documentation to install it manually:\n" + "https://docs.binary.ninja/guide/debugger/dbgeng-ttd.html#install-windbg-manually"); + dialog.exec(); +#else std::string pluginRoot; if (getenv("BN_STANDALONE_DEBUGGER") != nullptr) pluginRoot = GetUserPluginDirectory(); @@ -885,6 +891,7 @@ void GlobalDebuggerUI::installTTD(const UIActionContext& ctxt) return; widget->runScriptFromFile(ttdInstallerScript.string()); +#endif } #endif