Index: webkit/glue/plugins/webplugin_delegate_impl_win.cc |
diff --git a/webkit/glue/plugins/webplugin_delegate_impl_win.cc b/webkit/glue/plugins/webplugin_delegate_impl_win.cc |
index df75cc0e26c350277a1c23b95df1768f76ebd973..7a2e3145ee2946068754679245ca4952a255e6ef 100644 |
--- a/webkit/glue/plugins/webplugin_delegate_impl_win.cc |
+++ b/webkit/glue/plugins/webplugin_delegate_impl_win.cc |
@@ -412,7 +412,8 @@ bool WebPluginDelegateImpl::PlatformInitialize() { |
if ((quirks_ & PLUGIN_QUIRK_PATCH_REGENUMKEYEXW) && |
win_util::GetWinVersion() == win_util::WINVERSION_XP && |
!RegKey().Open(HKEY_LOCAL_MACHINE, |
- L"SOFTWARE\\Microsoft\\MediaPlayer\\ShimInclusionList\\chrome.exe") && |
+ L"SOFTWARE\\Microsoft\\MediaPlayer\\ShimInclusionList\\chrome.exe", |
+ KEY_READ) && |
!g_iat_patch_reg_enum_key_ex_w.Pointer()->is_patched()) { |
g_iat_patch_reg_enum_key_ex_w.Pointer()->Patch( |
L"wmpdxm.dll", "advapi32.dll", "RegEnumKeyExW", |