[misc] fix WDK fseek errors

* Closes #241
* Also update the ChangeLog
This commit is contained in:
Pete Batard 2014-02-21 18:42:28 +00:00
parent 31d11c6c1f
commit e530065099
3 changed files with 12 additions and 9 deletions

View file

@ -47,7 +47,8 @@
#include <stdio.h>
#include <io.h>
static __inline int fseeko64(FILE *stream, __int64 offset, int origin) {
return (lseek64(_fileno(stream), offset, origin) == -1L)?-1:0;
fflush(stream); /* VERY IMPORTANT! */
return (lseek64(_fileno(stream), offset, origin) == -1LL)?-1:0;
}
#else
#define fseeko64 _fseeki64