fix file-or-directory-identity for dirs on Windows

svn: r16791
This commit is contained in:
Matthew Flatt 2009-11-16 00:09:09 +00:00
parent 25f9bcfe03
commit b50aee633f

View File

@ -2358,7 +2358,7 @@ Scheme_Object *scheme_get_fd_identity(Scheme_Object *port, long fd, char *path)
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
0,
FILE_FLAG_BACKUP_SEMANTICS,
NULL);
if (fd == INVALID_HANDLE_VALUE) {
errid = GetLastError();