summaryrefslogtreecommitdiff
path: root/minigzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'minigzip.c')
-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