From a2881aacfea46ebc9a4c61c1fe52334347ab90f4 Mon Sep 17 00:00:00 2001 From: spayton Date: Mon, 7 Apr 2014 18:43:58 +0100 Subject: [PATCH] Update private-libwebsockets.h fixes windows http file serve - macro compatible_file_read() incorrectly used 'amount' instead of '_amount' --- lib/private-libwebsockets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index d45f6ec99..b3d4e46d3 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -74,7 +74,7 @@ #define compatible_file_seek_cur(fd, offset) SetFilePointer(fd, offset, NULL, FILE_CURRENT) #define compatible_file_read(amount, fd, buf, len) {\ DWORD _amount; \ - if (!ReadFile(fd, buf, len, &amount, NULL)) \ + if (!ReadFile(fd, buf, len, &_amount, NULL)) \ amount = -1; \ else \ amount = _amount; \