Sfoglia il codice sorgente

Bug fix: With debug logging enabled, the echoed script commands and XML log group names miss the command name

Caused by 069aa20f

Source commit: 2692655a4bf1261b907b346c3c8d0179c70c0bd0
Martin Prikryl 2 anni fa
parent
commit
7f7427a236
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      source/core/Script.cpp

+ 3 - 2
source/core/Script.cpp

@@ -507,10 +507,11 @@ void __fastcall TScript::Command(UnicodeString Cmd)
 
         if (Configuration->ActualLogProtocol >= 1)
         {
+          UnicodeString LogCmdParams = LogCmd;
           UnicodeString DummyLogCmd;
-          if (DebugAlwaysTrue(CutToken(LogCmd, DummyLogCmd)))
+          if (DebugAlwaysTrue(CutToken(LogCmdParams, DummyLogCmd)))
           {
-            std::unique_ptr<TScriptProcParams> Parameters(new TScriptProcParams(FCommands->ResolveCommand(Cmd), LogCmd));
+            std::unique_ptr<TScriptProcParams> Parameters(new TScriptProcParams(FCommands->ResolveCommand(Cmd), LogCmdParams));
             Parameters->LogOptions(LogOption);
           }
         }