*** empty log message ***

This commit is contained in:
Arvid Norberg
2005-04-02 10:57:46 +00:00
parent d7918ef465
commit a8b0801cdf
2 changed files with 148 additions and 3 deletions

View File

@@ -35,8 +35,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include <windows.h>
#define DWORD_MAX 0xffffffffu
namespace
{
// must be used to not leak memory in case something would throw
@@ -118,8 +116,9 @@ namespace libtorrent
assert(access_mask & (GENERIC_READ | GENERIC_WRITE));
#ifdef _UNICODE
std::wstring wfile_name(utf8_wchar(file_name));
HANDLE new_handle = CreateFile(
(LPCWSTR)file_name
(LPCWSTR)wfile_name.c_str()
, access_mask
, FILE_SHARE_READ
, 0