summaryrefslogtreecommitdiffstats
path: root/base/file_util_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/file_util_win.cc')
-rw-r--r--base/file_util_win.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc
index c2dbf0a..b50ab09 100644
--- a/base/file_util_win.cc
+++ b/base/file_util_win.cc
@@ -549,12 +549,11 @@ int WriteFile(const std::wstring& filename, const char* data, int size) {
return -1;
}
-bool RenameFileAndResetSecurityDescriptor(
- const std::wstring& source_file_path,
- const std::wstring& target_file_path) {
+bool RenameFileAndResetSecurityDescriptor(const FilePath& source_file_path,
+ const FilePath& target_file_path) {
// The parameters to SHFileOperation must be terminated with 2 NULL chars.
- std::wstring source = source_file_path;
- std::wstring target = target_file_path;
+ std::wstring source = source_file_path.value();
+ std::wstring target = target_file_path.value();
source.append(1, L'\0');
target.append(1, L'\0');