summaryrefslogtreecommitdiffstats
path: root/base/file_version_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/file_version_info.cc')
-rw-r--r--base/file_version_info.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/base/file_version_info.cc b/base/file_version_info.cc
index 22d3d24..19aa011 100644
--- a/base/file_version_info.cc
+++ b/base/file_version_info.cc
@@ -40,9 +40,9 @@ FileVersionInfo* FileVersionInfo::CreateFileVersionInfoForCurrentModule() {
// static
FileVersionInfo* FileVersionInfo::CreateFileVersionInfo(
- const std::wstring& file_path) {
+ const FilePath& file_path) {
DWORD dummy;
- const wchar_t* path = file_path.c_str();
+ const wchar_t* path = file_path.value().c_str();
DWORD length = ::GetFileVersionInfoSize(path, &dummy);
if (length == 0)
return NULL;
@@ -71,6 +71,12 @@ FileVersionInfo* FileVersionInfo::CreateFileVersionInfo(
}
}
+FileVersionInfo* FileVersionInfo::CreateFileVersionInfo(
+ const std::wstring& file_path) {
+ FilePath file_path_fp = FilePath::FromWStringHack(file_path);
+ return CreateFileVersionInfo(file_path_fp);
+}
+
std::wstring FileVersionInfo::company_name() {
return GetStringValue(L"CompanyName");
}