From 67b79cdd696b70040cada4f93f4193ce7df99feb Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 17 Jun 2011 06:55:40 +0000 Subject: [PATCH] fix windows assert --- src/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.cpp b/src/file.cpp index d479a47a4..405b6da4f 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -794,7 +794,7 @@ namespace libtorrent m_path = convert_to_native(path); #endif - TORRENT_ASSERT((mode & mode_mask) < sizeof(mode_array)/sizeof(mode_array[0])); + TORRENT_ASSERT((mode & rw_mask) < sizeof(mode_array)/sizeof(mode_array[0])); open_mode_t const& m = mode_array[mode & rw_mask]; DWORD a = attrib_array[(mode & attribute_mask) >> 12];