This commit is contained in:
Tor Lillqvist 1999-11-08 09:49:10 +00:00
parent 22a15d33de
commit cafa1e2c15
2 changed files with 4 additions and 4 deletions

View File

@ -806,8 +806,8 @@ g_win32_error_message (gint error)
|FORMAT_MESSAGE_FROM_SYSTEM, |FORMAT_MESSAGE_FROM_SYSTEM,
NULL, error, 0, NULL, error, 0,
(LPTSTR) &msg, 0, NULL); (LPTSTR) &msg, 0, NULL);
if (nbytes > 2 && error[nbytes-1] == '\n' && error[nbytes-2] == '\r') if (nbytes > 2 && msg[nbytes-1] == '\n' && msg[nbytes-2] == '\r')
error[nbytes-2] = '\0'; msg[nbytes-2] = '\0';
retval = g_strdup (msg); retval = g_strdup (msg);

View File

@ -806,8 +806,8 @@ g_win32_error_message (gint error)
|FORMAT_MESSAGE_FROM_SYSTEM, |FORMAT_MESSAGE_FROM_SYSTEM,
NULL, error, 0, NULL, error, 0,
(LPTSTR) &msg, 0, NULL); (LPTSTR) &msg, 0, NULL);
if (nbytes > 2 && error[nbytes-1] == '\n' && error[nbytes-2] == '\r') if (nbytes > 2 && msg[nbytes-1] == '\n' && msg[nbytes-2] == '\r')
error[nbytes-2] = '\0'; msg[nbytes-2] = '\0';
retval = g_strdup (msg); retval = g_strdup (msg);