[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 45/219: tests/server/util: fix Windows Unicode buil
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 45/219: tests/server/util: fix Windows Unicode build |
Date: |
Wed, 22 May 2019 19:16:24 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit dc0712eea3f4354e29330477bcf15b96f85e205c
Author: Marcel Raad <address@hidden>
AuthorDate: Wed Apr 10 19:26:35 2019 +0200
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
---
tests/server/util.c | 4 ++--
1 file 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);
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnurl] 45/219: tests/server/util: fix Windows Unicode build,
gnunet <=