aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-04-10 19:26:35 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-04-11 21:03:20 +0200
commitdc0712eea3f4354e29330477bcf15b96f85e205c (patch)
tree43c0315b72435eabc7d08a655745777fba458d9d /tests/server
parent20b8df1096c0befe6eb4cab835f103ad04c3e27e (diff)
tests/server/util: fix Windows Unicode build
Always use the ANSI version of FormatMessage as we don't have the curl_multibyte gear available here. Closes https://github.com/curl/curl/pull/3758
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/util.c b/tests/server/util.c
index c3935f58a..b06133802 100644
--- a/tests/server/util.c
+++ b/tests/server/util.c
@@ -150,8 +150,8 @@ void win32_perror(const char *msg)
char buf[512];
DWORD err = SOCKERRNO;
- if(!FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, err,
- LANG_NEUTRAL, buf, sizeof(buf), NULL))
+ if(!FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, NULL, err,
+ LANG_NEUTRAL, buf, sizeof(buf), NULL))
msnprintf(buf, sizeof(buf), "Unknown error %lu (%#lx)", err, err);
if(msg)
fprintf(stderr, "%s: ", msg);