diff --git a/src/xpdev/sockwrap.c b/src/xpdev/sockwrap.c index 16f020c8c43adf10621481d5fcdda45f76a70ced..228851b872c1c981e241a39b031495de33acf9ed 100644 --- a/src/xpdev/sockwrap.c +++ b/src/xpdev/sockwrap.c @@ -506,7 +506,7 @@ DLLEXPORT const char* socket_strerror(int error_number) { static char msg[256]; - FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, // dwFlags + FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_MAX_WIDTH_MASK, // dwFlags NULL, // lpSource error_number, // dwMessageId MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // dwLanguageId