diff options
author | Eduardo Bart <edub4rt@gmail.com> | 2012-11-20 01:19:31 -0200 |
---|---|---|
committer | Eduardo Bart <edub4rt@gmail.com> | 2012-11-20 01:19:31 -0200 |
commit | cf0dadcf6ed2cfe52e2df68165f6448b6f26dbbc (patch) | |
tree | 4e4c50f75e6b3838eda53217072057c4a3918e0a /src/win32 | |
parent | e566b609df9c45994fa43c8f7a97bd4090a9b11e (diff) | |
download | libgit2-cf0dadcf6ed2cfe52e2df68165f6448b6f26dbbc.tar.gz |
Minor optimization in win32 do_lstat
Diffstat (limited to 'src/win32')
-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; } } } |