Skip to content

Commit

Permalink
Merge pull request #16 from processhacker/master
Browse files Browse the repository at this point in the history
[pull] master from processhacker:master
  • Loading branch information
pull[bot] authored Sep 25, 2020
2 parents 8e5007c + d116646 commit 54e13f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ProcessHacker/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,7 @@ VOID PhpShowKphError(
PhShowError2(
NULL,
Message,
L"%s",
L"You will be unable to use more advanced features, view details about system processes or terminate malicious software."
);
}
Expand All @@ -1003,15 +1004,16 @@ VOID PhpShowKphError(
L"\r\n\r\n",
L"You will be unable to use more advanced features, view details about system processes or terminate malicious software."
);
PhShowError2(NULL, Message, statusMessage->Buffer);
PhShowError2(NULL, Message, L"%s", statusMessage->Buffer);
PhDereferenceObject(statusMessage);
PhDereferenceObject(errorMessage);
}
else
{
PhShowError2(
NULL,
Message,
Message,
L"%s",
L"You will be unable to use more advanced features, view details about system processes or terminate malicious software."
);
}
Expand Down
3 changes: 3 additions & 0 deletions tools/CustomBuildTool/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ public static int CreateProcess(string FileName, string Arguments, out string ou
}

outputstring = output.ToString() + error.ToString();
outputstring = outputstring.Replace("\n\n", "\r\n", StringComparison.OrdinalIgnoreCase).Trim();
outputstring = outputstring.Replace("\r\n", string.Empty, StringComparison.OrdinalIgnoreCase).Trim();

return exitcode;
}

Expand Down
Binary file modified tools/CustomBuildTool/bin/Release/CustomBuildTool.exe
Binary file not shown.

0 comments on commit 54e13f7

Please sign in to comment.