From a80d6171f33972240da6935c8d80da55e75aff9e Mon Sep 17 00:00:00 2001 From: "kuchhal@chromium.org" Date: Thu, 6 Nov 2008 19:06:11 +0000 Subject: Fix Chrome do not launch problem. Review URL: http://codereview.chromium.org/9650 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4900 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/google_update_client.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chrome/app/google_update_client.cc') diff --git a/chrome/app/google_update_client.cc b/chrome/app/google_update_client.cc index 046c560f..aa12dad 100755 --- a/chrome/app/google_update_client.cc +++ b/chrome/app/google_update_client.cc @@ -81,7 +81,8 @@ bool GoogleUpdateClient::Launch(HINSTANCE instance, ::GetProcAddress(dll_handle, entry_name)); if (NULL != entry) { // record did_run "dr" in client state - std::wstring key_path = google_update::kRegPathClientState + guid_; + std::wstring key_path(google_update::kRegPathClientState); + key_path.append(L"\\" + guid_); HKEY reg_key; if (::RegOpenKeyEx(HKEY_CURRENT_USER, key_path.c_str(), 0, KEY_WRITE, ®_key) == ERROR_SUCCESS) { @@ -116,6 +117,7 @@ bool GoogleUpdateClient::Init(const wchar_t* client_guid, ret = true; } else { std::wstring key(google_update::kRegPathClients); + key.append(L"\\"); key.append(guid_); if (client_util::GetChromiumVersion(dll_path_, key.c_str(), &version_)) ret = true; -- cgit v1.1