Commit b587ab70 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

trim whitespace from windows error messages



the messages contain a trailing CRLF, which is not helpful.

Change-Id: I4a27115a191dc416a62e28a41f2a9c5893bdc64b
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
(cherry picked from qtbase/fe9baf7e5b10dc7dfe074791d5e286a29cc33560)
parent 85327a45
......@@ -211,7 +211,7 @@ static QString windowsErrorCode()
NULL);
QString ret = QString::fromWCharArray(string);
LocalFree((HLOCAL)string);
return ret;
return ret.trimmed();
}
#endif
......
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