We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ddbb83 commit a9fd909Copy full SHA for a9fd909
2 files changed
src/errors.cpp
@@ -82,10 +82,10 @@ WindowsError::WindowsError(DWORD val)
82
ss << val;
83
84
wchar_t* buf = NULL;
85
- FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
+ FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_MAX_WIDTH_MASK,
86
NULL,
87
val,
88
- LANG_USER_DEFAULT,
+ MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
89
(wchar_t*) &buf, // What a weird API.
90
0,
91
NULL);
src/path.cpp
@@ -95,7 +95,7 @@ Path::localpathtype Path::c_localdefault = LOCALPATH_LOCAL;
95
*/
96
Path::Path()
97
{
98
- m_path = ".";
+ m_path = "";
99
}
100
101
/**
0 commit comments