Skip to content

Commit

Permalink
fix: adjust discrepancy between execution syntax and loaded path for …
Browse files Browse the repository at this point in the history
…DynamoRIO
  • Loading branch information
Mohamad Kanj committed Jul 1, 2020
1 parent 8aa5d21 commit 106e211
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tools/DRaceGUI/src/Command_Handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@ QString Command_Handler::make_entry(const QString &path, uint position,
if (path != "") {
QString temp = path;
if (temp.contains(QRegExp("\\s+")) && !no_quotes) {
// if drrun is enclosed in quotation marks, prefix with a '.'
if (position == 0) {
temp = ".\'" + temp + "\'";
} else {
temp = "\'" + temp + "\'";
}
temp = "\'" + temp + "\'";
}
if (prefix != "") {
temp = prefix + " " + temp;
Expand All @@ -51,6 +46,12 @@ QString Command_Handler::updateCommand(const QString &arg1, uint position) {

QString Command_Handler::make_command() {
entire_command = "";
// if drrun is enclosed in quotation marks, prefix with a '.'
if (command[0] != "") {
if (command[0].contains(QRegExp("\\s+"))) {
entire_command.prepend(".");
}
}
for (int it = 0; it <= (REPORT_CMD); it++) {
if (command[it] != "") {
entire_command.append(command[it]);
Expand Down

0 comments on commit 106e211

Please sign in to comment.