Commit d1063a05 authored by Georges Khalil's avatar Georges Khalil Committed by Commit Bot

Fix reading MachineGuid on WoW64.

Change-Id: I4facf3700f274141640707b18c97a8db9fd7ef0c
Bug: 865007
Reviewed-on: https://chromium-review.googlesource.com/1141280Reviewed-by: default avatarJulian Pastarmov <pastarmovj@chromium.org>
Commit-Queue: Georges Khalil <georgesak@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576100}
parent 76366470
...@@ -130,8 +130,9 @@ std::string BrowserDMTokenStorageWin::InitClientId() { ...@@ -130,8 +130,9 @@ std::string BrowserDMTokenStorageWin::InitClientId() {
// For the client id, use the Windows machine GUID. // For the client id, use the Windows machine GUID.
// TODO(crbug.com/821977): Need a backup plan if machine GUID doesn't exist. // TODO(crbug.com/821977): Need a backup plan if machine GUID doesn't exist.
base::win::RegKey key; base::win::RegKey key;
LSTATUS status = key.Open(HKEY_LOCAL_MACHINE, LSTATUS status =
L"SOFTWARE\\Microsoft\\Cryptography", KEY_READ); key.Open(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Cryptography",
KEY_QUERY_VALUE | KEY_WOW64_64KEY);
if (status != ERROR_SUCCESS) if (status != ERROR_SUCCESS)
return std::string(); return std::string();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment