Kaydet (Commit) 4aee1237 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Strip also a CR if there (and there seems to be such)

Sad that it took so long for me to notice.

Change-Id: I14b8a61930bb0b2dd1c5e9cce2a6c3e375dcb6ed
üst 210c39dd
......@@ -32,6 +32,9 @@ inline OUString WindowsErrorString(DWORD nErrorCode)
if (pMsgBuf[wcslen(pMsgBuf)-1] == '\n')
pMsgBuf[wcslen(pMsgBuf)-1] = '\0';
if (pMsgBuf[wcslen(pMsgBuf)-1] == '\r')
pMsgBuf[wcslen(pMsgBuf)-1] = '\0';
OUString result(pMsgBuf);
LocalFree(pMsgBuf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment