Skip to content

Commit 769b4ca

Browse files
committed
Fixed file path for WordPad execution
1 parent 6cfbbdc commit 769b4ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MTADiag/Common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
#include <shlobj.h>
2626
#include "Log.h"
2727

28-
#define VERSION "2.7.16"
28+
#define VERSION "2.7.17"

MTADiag/Diag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ void Diag::Begin ( void )
259259
std::cout << "Error code: \"" << PasteBinResult << "\"" << std::endl;
260260
std::cout << "Please paste the contents of the opened Wordpad window at https://pastebin.mtasa.com" << std::endl;
261261
std::cout << "Include the MTA Pastebin link in your forum post." << std::endl << std::endl;
262-
ShellExecute ( NULL, "open", "wordpad.exe", files[FILE_LOG].c_str(), NULL, SW_SHOW );
262+
ShellExecute ( NULL, "open", "wordpad.exe", QuoteFilename( files[FILE_LOG] ).c_str(), NULL, SW_SHOW );
263263
}
264264
}
265265

0 commit comments

Comments
 (0)