Commit cf0dadcf by Eduardo Bart

Minor optimization in win32 do_lstat

parent e566b609
...@@ -121,10 +121,9 @@ static int do_lstat( ...@@ -121,10 +121,9 @@ static int do_lstat(
fbuf[flen] = L'\0'; fbuf[flen] = L'\0';
if (GetFileAttributesExW(fbuf, GetFileExInfoStandard, &fdata)) { if (GetFileAttributesExW(fbuf, GetFileExInfoStandard, &fdata)) {
if (!(fdata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { if (!(fdata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
errno = ENOTDIR; errno = ENOTDIR;
break; break;
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment