Update private-libwebsockets.h
authorspayton <stuart@azureweb.plus.com>
Mon, 7 Apr 2014 17:43:58 +0000 (18:43 +0100)
committerAndy Green <andy.green@linaro.org>
Tue, 8 Apr 2014 06:22:53 +0000 (07:22 +0100)
fixes windows http file serve - macro compatible_file_read() incorrectly used 'amount' instead of '_amount'

lib/private-libwebsockets.h

index d45f6ec..b3d4e46 100644 (file)
@@ -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; \