windows fix SetFilePointer args
authorAndy Green <andy.green@linaro.org>
Thu, 3 Apr 2014 11:52:37 +0000 (19:52 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 3 Apr 2014 11:52:37 +0000 (19:52 +0800)
This restricts it to 4GB files on 32-bit Windows but it'll do for now.

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/private-libwebsockets.h

index 1443de0..75a26e7 100644 (file)
@@ -71,7 +71,7 @@
 
 #define compatible_close(fd) closesocket(fd)
 #define compatible_file_close(fd) CloseHandle(fd)
-#define compatible_file_seek_cur(fd, offset) SetFilePointer(fd, offset, FILE_CURRENT)
+#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)) \