summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5FDsec2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c
index a182ee2..f888852 100644
--- a/src/H5FDsec2.c
+++ b/src/H5FDsec2.c
@@ -730,7 +730,7 @@ H5FD_sec2_flush(H5FD_t *_file, unsigned UNUSED closing)
if (file->eoa>file->eof) {
#ifdef WIN32
/* Map the posix file handle to a Windows file handle */
- filehandle = _get_osfhandle(fd);
+ filehandle = _get_osfhandle(file->fd);
/* Translate 64-bit integers into form Windows wants */
/* [This algorithm is from the Windows documentation for SetFilePointer()] */