1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Update private-libwebsockets.h

fixes windows http file serve - macro compatible_file_read() incorrectly used 'amount' instead of '_amount'
This commit is contained in:
spayton 2014-04-07 18:43:58 +01:00 committed by Andy Green
parent d2f5b199bc
commit 5b94c3b449

View 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; \