Skip to content

Commit 52ac616

Browse files
committed
fixup! fscache: teach fscache to use NtQueryDirectoryFile
The return value of that function is not actually we are currently able to translate to an `errno`-style value easily. So let's just not. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 2a85ba5 commit 52ac616

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compat/win32/fscache.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,8 @@ static struct fsentry *fsentry_create_list(struct fscache *cache, const struct f
309309
return list;
310310

311311
Error:
312-
errno = (status == ERROR_DIRECTORY) ? ENOTDIR : err_win_to_posix(status);
313-
trace_printf_key(&trace_fscache, "fscache: error(%d) unable to query directory contents '%.*s'\n",
314-
errno, dir->len, dir->name);
312+
trace_printf_key(&trace_fscache, "fscache: status(%ld) unable to query directory contents '%.*s'\n",
313+
status, dir->len, dir->name);
315314
CloseHandle(h);
316315
fsentry_release(list);
317316
return NULL;

0 commit comments

Comments
 (0)