Don't de-capitalize system error messages on MSW
The returned string being capitalized is not 'bad' as the ancient comment from the 90s suggested. At least on Windows 7+, system error messages are full sentences beginning with a capital letter, ending in a full stop; there is no point in lowercasing the first letter.
This commit is contained in:
parent
de70fa5b2f
commit
3926538fea
@ -1092,8 +1092,7 @@ const wxChar *wxSysErrorMsg(unsigned long nErrCode)
|
||||
|
||||
LocalFree(lpMsgBuf);
|
||||
|
||||
// returned string is capitalized and ended with '\r\n' - bad
|
||||
s_szBuf[0] = (wxChar)wxTolower(s_szBuf[0]);
|
||||
// returned string is ended with '\r\n' - bad
|
||||
size_t len = wxStrlen(s_szBuf);
|
||||
if ( len >= 2 ) {
|
||||
// truncate string
|
||||
|
Loading…
Reference in New Issue
Block a user