diff options
author | qwerty <[email protected]> | 2022-02-10 16:49:25 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:25 +0300 |
commit | ca6b8a0150d5ee4cc8fb804d1285d9c32fb4fe88 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/folder/lstat_win.c | |
parent | 34e37ee57f5837a8da2fdfaccaac9bbe6c7f02ba (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/folder/lstat_win.c')
-rw-r--r-- | util/folder/lstat_win.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/folder/lstat_win.c b/util/folder/lstat_win.c index d5bb64ede4f..cf94cec01ae 100644 --- a/util/folder/lstat_win.c +++ b/util/folder/lstat_win.c @@ -3,7 +3,7 @@ #ifdef _win_ #include <util/system/winint.h> #include "lstat_win.h" - + int lstat(const char* fileName, stat_struct* fileStat) { int len = strlen(fileName); int convRes = MultiByteToWideChar(CP_UTF8, 0, fileName, len, 0, 0); @@ -21,7 +21,7 @@ int lstat(const char* fileName, stat_struct* fileStat) { if (result == 0) { SetLastError(0); findHandle = FindFirstFileW(buf, &findBuf); - if (findBuf.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT && + if (findBuf.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT && (findBuf.dwReserved0 == IO_REPARSE_TAG_MOUNT_POINT || findBuf.dwReserved0 == IO_REPARSE_TAG_SYMLINK)) { fileStat->st_mode = fileStat->st_mode & ~_S_IFMT | _S_IFLNK; |