summaryrefslogtreecommitdiff
path: root/evutil.c
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-10-09 19:41:30 +0200
committerMattes D <github@xoft.cz>2015-12-14 11:51:35 +0100
commite8b78957ea70bd0d64d1ed5dde2108a05476ac79 (patch)
treebd4ae788cc5166ede76e13aaace61aa9fcd78ed1 /evutil.c
parent809bb39b2b7b632c86337877b483520d997cd5db (diff)
downloadlibevent-e8b78957ea70bd0d64d1ed5dde2108a05476ac79.tar.gz
Fixed Unicode issue in error messages.
Diffstat (limited to 'evutil.c')
-rw-r--r--evutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/evutil.c b/evutil.c
index f9cbaa7d..573c0acd 100644
--- a/evutil.c
+++ b/evutil.c
@@ -1708,10 +1708,10 @@ evutil_socket_error_to_string(int errcode)
goto done;
}
- if (0 != FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM |
+ if (0 != FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS |
FORMAT_MESSAGE_ALLOCATE_BUFFER,
- NULL, errcode, 0, (LPTSTR)&msg, 0, NULL))
+ NULL, errcode, 0, (char *)&msg, 0, NULL))
chomp (msg); /* because message has trailing newline */
else {
size_t len = 50;