merged stats fix from RC_0_16
This commit is contained in:
parent
0b3df1c973
commit
15d4a0c55c
10
src/file.cpp
10
src/file.cpp
|
@ -216,12 +216,10 @@ namespace libtorrent
|
||||||
s->atime = file_time_to_posix(data.ftLastAccessTime);
|
s->atime = file_time_to_posix(data.ftLastAccessTime);
|
||||||
s->mtime = file_time_to_posix(data.ftLastWriteTime);
|
s->mtime = file_time_to_posix(data.ftLastWriteTime);
|
||||||
|
|
||||||
s->mode = ((data.dwFileAttributes & FILE_ATTRIBUTE_NORMAL)
|
s->mode = (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||||
? file_status::regular_file : 0)
|
? file_status::directory
|
||||||
| ((data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
: (data.dwFileAttributes & FILE_ATTRIBUTE_DEVICE)
|
||||||
? file_status::directory : 0)
|
? file_status::character_special : file_status::regular_file;
|
||||||
| ((data.dwFileAttributes & FILE_ATTRIBUTE_DEVICE)
|
|
||||||
? file_status::character_special : 0);
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue