summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
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