Skip to content

Commit

Permalink
x64dbgplugin: enable launch watcher in non debuggee
Browse files Browse the repository at this point in the history
  • Loading branch information
David Reguera committed Mar 30, 2017
1 parent 868bb97 commit c9a3217
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion x64dbgplugin/PluginTemplate/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ void ExecuteNewProcessLauncher(BOOL old_process, wchar_t* path)
ReleaseMutex(hMutex);
result = MessageBoxA(NULL, "NewProcessWatcher is not running, do you want launch it?", PLUGIN_NAME, MB_YESNO | MB_ICONQUESTION | MB_TOPMOST);
}
else
{
_plugin_logprintf("[" PLUGIN_NAME "] NewProcessWatcher already Open");
}
}

if (result == IDYES)
Expand Down Expand Up @@ -80,7 +84,11 @@ void GetCurrentPath(WCHAR * current_path)

PLUG_EXPORT void CBMENUENTRY(CBTYPE cbType, PLUG_CB_MENUENTRY* info)
{
if (info->hEntry != MENU_INFO && info->hEntry != MENU_HELP)
if (info->hEntry != MENU_INFO &&
info->hEntry != MENU_HELP &&
info->hEntry != MENU_NEW_PROCESS_WATCHER &&
info->hEntry != MENU_NEW_PROCESS_WATCHER_OLD
)
{
if (!DbgIsDebugging())
{
Expand Down

0 comments on commit c9a3217

Please sign in to comment.