summaryrefslogtreecommitdiffstats
path: root/base/file_version_info.cc
diff options
context:
space:
mode:
authormmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-14 00:41:45 +0000
committermmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-14 00:41:45 +0000
commit5115474e2e2c773b53fc1e111426e8924deeadb7 (patch)
tree6bdd56cdd544a3b331db7612781ae347739c4e82 /base/file_version_info.cc
parent609990b5b4254601504935427483e3fc22cfde80 (diff)
downloadchromium_src-5115474e2e2c773b53fc1e111426e8924deeadb7.zip
chromium_src-5115474e2e2c773b53fc1e111426e8924deeadb7.tar.gz
chromium_src-5115474e2e2c773b53fc1e111426e8924deeadb7.tar.bz2
Use %ls instead of %s in wprintf format strings for wchar_t fields.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_version_info.cc')
-rw-r--r--base/file_version_info.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/file_version_info.cc b/base/file_version_info.cc
index 90aedd2..fbe90a1 100644
--- a/base/file_version_info.cc
+++ b/base/file_version_info.cc
@@ -183,7 +183,7 @@ bool FileVersionInfo::GetValue(const wchar_t* name, std::wstring* value_str) {
WORD language = lang_codepage[i++];
WORD code_page = lang_codepage[i++];
_snwprintf_s(sub_block, MAX_PATH, MAX_PATH,
- L"\\StringFileInfo\\%04x%04x\\%s", language, code_page, name);
+ L"\\StringFileInfo\\%04x%04x\\%ls", language, code_page, name);
LPVOID value = NULL;
uint32 size;
BOOL r = ::VerQueryValue(data_.get(), sub_block, &value, &size);