diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/win32/posix_w32.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/win32/posix_w32.c b/src/win32/posix_w32.c index d0e366e28..0efcaf597 100644 --- a/src/win32/posix_w32.c +++ b/src/win32/posix_w32.c @@ -121,10 +121,9 @@ static int do_lstat( fbuf[flen] = L'\0'; if (GetFileAttributesExW(fbuf, GetFileExInfoStandard, &fdata)) { - if (!(fdata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { + if (!(fdata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) errno = ENOTDIR; - break; - } + break; } } } |
