summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
Diffstat (limited to 'printing')
-rw-r--r--printing/printed_document.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/printing/printed_document.cc b/printing/printed_document.cc
index 7452e0e..6058968 100644
--- a/printing/printed_document.cc
+++ b/printing/printed_document.cc
@@ -270,10 +270,10 @@ void PrintedDocument::DebugDump(const PrintedPage& page) {
file_util::ReplaceIllegalCharactersInPath(&narrow_filename, '_');
filename = UTF8ToWide(narrow_filename);
#endif
- std::wstring path(g_debug_dump_info->debug_dump_path);
- file_util::AppendToPath(&path, filename);
+ FilePath path = FilePath::FromWStringHack(
+ g_debug_dump_info->debug_dump_path);
#if defined(OS_WIN)
- page.native_metafile()->SaveTo(path);
+ page.native_metafile()->SaveTo(path.Append(filename).ToWStringHack());
#else // OS_WIN
NOTIMPLEMENTED();
#endif // OS_WIN