summaryrefslogtreecommitdiffstats
path: root/chrome_frame/html_utils.cc
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-22 21:36:41 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-22 21:36:41 +0000
commita38056a858bcbcb5f3c8266247fdac2ab9703d0f (patch)
tree4a7c905f36df7893c69ac8c5218710f0804541f5 /chrome_frame/html_utils.cc
parent6913b5479f4f12fc9f883d6c8567cea73e05a43f (diff)
downloadchromium_src-a38056a858bcbcb5f3c8266247fdac2ab9703d0f.zip
chromium_src-a38056a858bcbcb5f3c8266247fdac2ab9703d0f.tar.gz
chromium_src-a38056a858bcbcb5f3c8266247fdac2ab9703d0f.tar.bz2
Include the full version number in the user agent.
TEST=Run unit tests. This change will make the request user agent have a more detailed version number for chrome frame (chromeframe/a.b.c.d instead of chromeframe/a.b) BUG=29258 Review URL: http://codereview.chromium.org/546117 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/html_utils.cc')
-rw-r--r--chrome_frame/html_utils.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome_frame/html_utils.cc b/chrome_frame/html_utils.cc
index e964ab9..dcc1f53 100644
--- a/chrome_frame/html_utils.cc
+++ b/chrome_frame/html_utils.cc
@@ -294,10 +294,12 @@ const char* GetChromeFrameUserAgent() {
if (!cf_user_agent[0]) {
_pAtlModule->m_csStaticDataInitAndTypeInfo.Lock();
if (!cf_user_agent[0]) {
- uint32 version = 0;
- GetModuleVersion(reinterpret_cast<HMODULE>(&__ImageBase), &version, NULL);
- wsprintfA(cf_user_agent, "%s/%i.%i", kChromeFrameUserAgent,
- HIWORD(version), LOWORD(version));
+ uint32 high_version = 0, low_version = 0;
+ GetModuleVersion(reinterpret_cast<HMODULE>(&__ImageBase), &high_version,
+ &low_version);
+ wsprintfA(cf_user_agent, "%s/%i.%i.%i.%i", kChromeFrameUserAgent,
+ HIWORD(high_version), LOWORD(high_version),
+ HIWORD(low_version), LOWORD(low_version));
}
_pAtlModule->m_csStaticDataInitAndTypeInfo.Unlock();
}