merged some windows fixes from RC_0_16

This commit is contained in:
Arvid Norberg
2013-01-06 18:38:33 +00:00
parent 38d7e58177
commit d8c2228ff3
4 changed files with 32 additions and 1 deletions

View File

@@ -101,7 +101,7 @@ void test_checking(bool read_only_files, bool corrupt_files = false)
char path[1024];
snprintf(path, sizeof(path), "tmp1_checking/test_torrent_dir/test%d", i);
#ifdef TORRENT_WINDOWS
SetFileAttributes(path, FILE_ATTRIBUTE_READONLY);
SetFileAttributesA(path, FILE_ATTRIBUTE_READONLY);
#else
chmod(path, S_IRUSR);
#endif