Skip to content

Commit

Permalink
Fix crash when attempting to install WinDbg/TTD in the free version. Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xusheng6 committed Oct 29, 2024
1 parent 6ad067a commit 87dc2da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ui/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -885,6 +891,7 @@ void GlobalDebuggerUI::installTTD(const UIActionContext& ctxt)
return;

widget->runScriptFromFile(ttdInstallerScript.string());
#endif
}
#endif

Expand Down

0 comments on commit 87dc2da

Please sign in to comment.