Use the user-visible version number in our user agent string
I.e., use CFBundleShortVersionString instead of CFBundleVersion on OS X and ProductVersion instead of FileVersion on Windows. This is generally more useful (although slightly lower granularity) than the machine-readable version number.
This commit is contained in:
parent
54419bbbb1
commit
a24c390318
2 changed files with 7 additions and 3 deletions
|
@ -13,7 +13,7 @@ std::string GetApplicationName() {
|
|||
|
||||
std::string GetApplicationVersion() {
|
||||
auto info = make_scoped_ptr(FileVersionInfo::CreateFileVersionInfoForModule(GetModuleHandle(nullptr)));
|
||||
return UTF16ToUTF8(info->file_version());
|
||||
return UTF16ToUTF8(info->product_version());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue