diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/tools/dump_cache/dump_files.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tools/dump_cache/dump_files.cc b/net/tools/dump_cache/dump_files.cc index 85a4f24..1d8555a 100644 --- a/net/tools/dump_cache/dump_files.cc +++ b/net/tools/dump_cache/dump_files.cc @@ -25,7 +25,8 @@ const wchar_t kDataPrefix[] = L"data_"; // Reads the |header_size| bytes from the beginning of file |name|. bool ReadHeader(const std::wstring name, char* header, int header_size) { net::FileStream file; - file.Open(name, base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ); + file.Open(FilePath::FromWStringHack(name), + base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ); if (!file.IsOpen()) { printf("Unable to open file %ls\n", name.c_str()); return false; |