diff --git a/compat/win32/fscache.c b/compat/win32/fscache.c index 7427ecb85f..7075281d2c 100644 --- a/compat/win32/fscache.c +++ b/compat/win32/fscache.c @@ -420,7 +420,8 @@ static struct fsentry *fscache_get(struct fscache *cache, struct fsentry *key) * thing as far as fscache is concerned). */ fse = fsentry_alloc(cache, key->list->list, - key->list->name, key->list->len); + key->list->dirent.d_name, + key->list->len); fse->st_mode = 0; hashmap_add(&cache->map, &fse->ent); }