aboutsummaryrefslogtreecommitdiff
path: root/tests/server/server_setup.h
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2019-11-09 18:07:59 -0500
committerJay Satiro <raysatiro@yahoo.com>2019-11-09 18:07:59 -0500
commit07cf042ececdcdc2b731c7a2040a48f21dde85b6 (patch)
tree9a0ba692fb0a8d393d790417689181d0b452e3e2 /tests/server/server_setup.h
parent8063c32209df2d8a90f0ad488188e7a9591db9c2 (diff)
strerror: Fix an error looking up some Windows error strings
- Use FORMAT_MESSAGE_IGNORE_INSERTS to ignore format specifiers in Windows error strings. Since we are not in control of the error code we don't know what information may be needed by the error string's format specifiers. Prior to this change Windows API error strings which contain specifiers (think specifiers like similar to printf specifiers) would not be shown. The FormatMessage Windows API call which turns a Windows error code into a string could fail and set error ERROR_INVALID_PARAMETER if that error string contained a format specifier. FormatMessage expects a va_list for the specifiers, unless inserts are ignored in which case no substitution is attempted. Ref: https://devblogs.microsoft.com/oldnewthing/20071128-00/?p=24353
Diffstat (limited to 'tests/server/server_setup.h')
0 files changed, 0 insertions, 0 deletions