summaryrefslogtreecommitdiffstats
path: root/src/H5FDstdio.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@hdfgroup.org>2010-05-28 15:46:33 (GMT)
committerVailin Choi <vchoi@hdfgroup.org>2010-05-28 15:46:33 (GMT)
commit9957d5f8e97ab00d7e487184db7c691cfcc13241 (patch)
tree02003c2da1f93ae4f92a120ecda937afbf64b34b /src/H5FDstdio.c
parent9f90e06bd0b400f5b5d9631eb680c00da3199894 (diff)
downloadhdf5-9957d5f8e97ab00d7e487184db7c691cfcc13241.zip
hdf5-9957d5f8e97ab00d7e487184db7c691cfcc13241.tar.gz
hdf5-9957d5f8e97ab00d7e487184db7c691cfcc13241.tar.bz2
[svn-r18922] Fix for failures for test/mf.c on windows:
1. H5FD_stdio_truncate() windows code: need to do a rewind 2. Make sure fsinfo.fs_addr is initialized before creating the message.
Diffstat (limited to 'src/H5FDstdio.c')
-rw-r--r--src/H5FDstdio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5FDstdio.c b/src/H5FDstdio.c
index b241f4d..6f13555 100644
--- a/src/H5FDstdio.c
+++ b/src/H5FDstdio.c
@@ -1023,6 +1023,9 @@ H5FD_stdio_truncate(H5FD_t *_file, hid_t dxpl_id, hbool_t closing)
HFILE filehandle; /* Windows file handle */
LARGE_INTEGER li; /* 64-bit integer for SetFilePointer() call */
+ /* Reset seek offset to beginning of file, so that file isn't re-extended later */
+ rewind(file->fp);
+
/* Map the posix file handle to a Windows file handle */
filehandle = _get_osfhandle(fd);