summaryrefslogtreecommitdiff
path: root/minigzip.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:27:17 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:27:17 -0700
commite0ff940e1adb68d3575705ebf1546d9f07ad3b4a (patch)
tree792ac6996d1225c0955027050296126bc8ff6e26 /minigzip.c
parent7df877eccdd826e94df53215f65dee639428e83f (diff)
downloadzlib-1.2.3.8.tar.gz
zlib-1.2.3.8.tar.bz2
zlib-1.2.3.8.zip
zlib 1.2.3.8v1.2.3.8
Diffstat (limited to '')
-rw-r--r--minigzip.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/minigzip.c b/minigzip.c
index e74d672..9d18266 100644
--- a/minigzip.c
+++ b/minigzip.c
@@ -76,13 +76,13 @@ static char *strwinerror (error)
76 wchar_t *msgbuf; 76 wchar_t *msgbuf;
77 DWORD lasterr = GetLastError(); 77 DWORD lasterr = GetLastError();
78 DWORD chars = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM 78 DWORD chars = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM
79 | FORMAT_MESSAGE_ALLOCATE_BUFFER, 79 | FORMAT_MESSAGE_ALLOCATE_BUFFER,
80 NULL, 80 NULL,
81 error, 81 error,
82 0, /* Default language */ 82 0, /* Default language */
83 (LPVOID)&msgbuf, 83 (LPVOID)&msgbuf,
84 0, 84 0,
85 NULL); 85 NULL);
86 if (chars != 0) { 86 if (chars != 0) {
87 /* If there is an \r\n appended, zap it. */ 87 /* If there is an \r\n appended, zap it. */
88 if (chars >= 2 88 if (chars >= 2