diff --git a/x64_dbg_dbg/command.cpp b/x64_dbg_dbg/command.cpp index 6af81812..6c4f43fe 100644 --- a/x64_dbg_dbg/command.cpp +++ b/x64_dbg_dbg/command.cpp @@ -242,7 +242,7 @@ static void specialformat(char* string) } else { - if(isvalidexpression(string) && isvalidexpression(found)) + if(isvalidexpression(found)) sprintf(str, "mov %s,%s", string, found); else strcpy(str, backup); diff --git a/x64_dbg_dbg/plugin_loader.cpp b/x64_dbg_dbg/plugin_loader.cpp index eb9f0dcc..d9974921 100644 --- a/x64_dbg_dbg/plugin_loader.cpp +++ b/x64_dbg_dbg/plugin_loader.cpp @@ -175,6 +175,7 @@ bool plugincmdregister(int pluginHandle, const char* command, CBPLUGINCOMMAND cb if(!cmdnew(dbggetcommandlist(), command, (CBCOMMAND)cbCommand, debugonly)) return false; pluginCommandList.push_back(plugCmd); + dprintf("[PLUGIN] command \"%s\" registered!\n", command); return true; } @@ -190,6 +191,7 @@ bool plugincmdunregister(int pluginHandle, const char* command) if(!cmddel(dbggetcommandlist(), command)) return false; pluginCommandList.erase(pluginCommandList.begin()+i); + dprintf("[PLUGIN] command \"%s\" unregistered!\n", command); return true; } }