summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glib/gwin32.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/glib/gwin32.c b/glib/gwin32.c
index 627896493..584673268 100644
--- a/glib/gwin32.c
+++ b/glib/gwin32.c
@@ -202,12 +202,12 @@ g_win32_error_message (gint error)
if (msg != NULL)
{
nchars = wcslen (msg);
-
+
if (nchars >= 2 && msg[nchars-1] == '\n' && msg[nchars-2] == '\r')
- msg[nchars-2] = '\0';
-
+ msg[nchars-2] = '\0';
+
retval = g_utf16_to_utf8 (msg, -1, NULL, NULL, NULL);
-
+
LocalFree (msg);
}
else