Index: content/common/sandbox_win.cc |
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc |
index 3d6f9b80575bf141b07c60704f0c8499c84aa4df..3963c6e33d9f211c96d5a76046f72d077398b38b 100644 |
--- a/content/common/sandbox_win.cc |
+++ b/content/common/sandbox_win.cc |
@@ -403,7 +403,7 @@ sandbox::ResultCode AddPolicyForSandboxedProcess( |
sandbox::ResultCode result = sandbox::SBOX_ALL_OK; |
// Win8+ adds a device DeviceApi that we don't need. |
- if (base::win::GetVersion() > base::win::VERSION_WIN7) |
+ if (base::win::GetVersion() >= base::win::VERSION_WIN8) |
result = policy->AddKernelObjectToClose(L"File", L"\\Device\\DeviceApi"); |
if (result != sandbox::SBOX_ALL_OK) |
return result; |