Commit af835c2f authored by sfalken@apple.com's avatar sfalken@apple.com

Fix nightly for Windows x64 users.

        Installed browser location is written to a slightly different registry key in that case.
        
        * FindSafari/FindSafari.cpp:
        (getInstalledWebKitDirectory):



git-svn-id: svn://svn.chromium.org/blink/trunk@42835 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 75973ee7
2009-04-24 Steve Falkenburg <sfalken@apple.com>
Fix nightly for Windows x64 users.
Installed browser location is written to a slightly different registry key in that case.
* FindSafari/FindSafari.cpp:
(getInstalledWebKitDirectory):
2009-04-23 Mark Rowe <mrowe@apple.com>
Fix the Windows DRT build.
......
......@@ -60,8 +60,11 @@ static TCHAR* getStringValue(HKEY key, LPCTSTR valueName)
static TCHAR* getInstalledWebKitDirectory()
{
LPCTSTR installPathKeyString = TEXT("SOFTWARE\\Apple Computer, Inc.\\Safari");
LPCTSTR installPathWin64KeyString = TEXT("SOFTWARE\\Wow6432Node\\Apple Computer, Inc.\\Safari");
HKEY installPathKey = 0;
LONG error = RegOpenKeyEx(HKEY_LOCAL_MACHINE, installPathKeyString, 0, KEY_READ, &installPathKey);
if (error != ERROR_SUCCESS)
error = RegOpenKeyEx(HKEY_LOCAL_MACHINE, installPathWin64KeyString, 0, KEY_READ, &installPathKey);
if (error != ERROR_SUCCESS) {
LOG_WARNING(TEXT("Failed to open registry key %s\n"), installPathKeyString);
return 0;
......
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