mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 00:12:15 +00:00
Minor optimization in win32 do_lstat
This commit is contained in:
parent
e566b609df
commit
cf0dadcf6e
@ -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;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user