From 6c32f82fc52be73d95b547ee52b534fd94cc53a7 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 16 Aug 2005 20:18:11 +0000 Subject: [PATCH] *** empty log message *** --- src/storage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storage.cpp b/src/storage.cpp index 03c3c141e..754b44c72 100755 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -482,9 +482,9 @@ namespace libtorrent save_path = complete(save_path); #if defined(WIN32) && defined(UNICODE) + std::wstring wsave_path(safe_convert(save_path.native_file_string())); if (!exists_win(save_path)) { - std::wstring wsave_path(safe_convert(save_path.native_file_string())); CreateDirectory(wsave_path.c_str(), 0); } else if ((GetFileAttributes(wsave_path.c_str()) & FILE_ATTRIBUTE_DIRECTORY) == 0) @@ -506,8 +506,8 @@ namespace libtorrent if (single_file.has_branch_path()) { #if defined(WIN32) && defined(UNICODE) - std::wstring wsave_path(safe_convert((save_path / single_file.branch_path())) - .native_directory_string()); + std::wstring wsave_path(safe_convert((save_path / single_file.branch_path()) + .native_directory_string())); CreateDirectory(wsave_path.c_str(), 0); #else create_directory(save_path / single_file.branch_path());