search for: 405097b

Displaying 1 result from an estimated 1 matches for "405097b".

Did you mean: 405,97
2012 May 04
0
[PATCH] add (errnum) in front of windows error messages
...the error number, this way it will be possible to lookup the actual error test using external ways. Signed-off-by: Michael Tokarev <mjt at tls.msk.ru> --- lib/utils.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/utils.c b/lib/utils.c index 6ea904a..405097b 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -53,15 +53,17 @@ void bin2hex(char *src, char *dst, int length) { #endif const char *winerror(int err) { - static char buf[1024], *newline; + static char buf[1024], *ptr; + + ptr = buf + sprintf(buf, "(%d) ", err); if (!FormatMessage(F...