Skip to content

Commit a9fd909

Browse files
committed
error message stick to English language.
1 parent 1ddbb83 commit a9fd909

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/errors.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ WindowsError::WindowsError(DWORD val)
8282
ss << val;
8383

8484
wchar_t* buf = NULL;
85-
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
85+
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_MAX_WIDTH_MASK,
8686
NULL,
8787
val,
88-
LANG_USER_DEFAULT,
88+
MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
8989
(wchar_t*) &buf, // What a weird API.
9090
0,
9191
NULL);

src/path.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Path::localpathtype Path::c_localdefault = LOCALPATH_LOCAL;
9595
*/
9696
Path::Path()
9797
{
98-
m_path = ".";
98+
m_path = "";
9999
}
100100

101101
/**

0 commit comments

Comments
 (0)