summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-04-29 17:44:36 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-04-29 17:44:36 (GMT)
commit18d325e35fd17fbf24f4d31d63d025bb73052b7e (patch)
tree5251c51331229c8be27f347b5565bf7a057805b0 /src/H5F.c
parent2443c16bf0e93465b0bbebde5920b199fca5630c (diff)
downloadhdf5-18d325e35fd17fbf24f4d31d63d025bb73052b7e.zip
hdf5-18d325e35fd17fbf24f4d31d63d025bb73052b7e.tar.gz
hdf5-18d325e35fd17fbf24f4d31d63d025bb73052b7e.tar.bz2
[svn-r1237] removed the path member in the search struct. replaced it with a fileindex
hi and lo. this number and the dev id will allow us to determine if the file is currently open on NT
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 6fa808a..17cf4cb 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -509,13 +509,11 @@ H5F_compare_files(void * _obj, const void * _key)
FUNC_ENTER(H5F_compare_files, FALSE);
#if WIN32
- ret_value = stricmp(key->path, obj->shared->key.path);
- if (ret_value){
- ret_value = FALSE;
- }
- else {
- ret_value = TRUE;
- }
+
+ ret_value = (obj->shared->key.dev == key->dev &&
+ obj->shared->key.fileindexhi == key->fileindexhi &&
+ obj->shared->key.fileindexlo == key->fileindexlo);
+
#else
ret_value = (obj->shared->key.dev == key->dev &&
obj->shared->key.ino == key->ino);
@@ -1829,10 +1827,6 @@ H5F_close(H5F_t *f)
"unable to flush cache");
}
}
-#ifdef WIN32
- /*free up the memory for path*/
- free(f->shared->key.path);
-#endif
/*
* Destroy the H5F_t struct and decrement the reference count for the