Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: sandbox/win/src/process_mitigations_win32k_dispatcher.cc

Issue 2720443002: Adjust version checks for GetCertificate* patching (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/process_mitigations_win32k_dispatcher.cc
diff --git a/sandbox/win/src/process_mitigations_win32k_dispatcher.cc b/sandbox/win/src/process_mitigations_win32k_dispatcher.cc
index 36db4267e0f3f50bb0fc5ac8ef94180c8f8f2440..347cdf14e730ccb14fc123e1967f147a3f19edd0 100644
--- a/sandbox/win/src/process_mitigations_win32k_dispatcher.cc
+++ b/sandbox/win/src/process_mitigations_win32k_dispatcher.cc
@@ -193,7 +193,7 @@ bool ProcessMitigationsWin32KDispatcher::SetupService(
GETCERTIFICATE_ID, 20)) {
return false;
}
- if (base::win::GetVersion() < base::win::VERSION_WIN10)
+ if (base::win::GetVersion() < base::win::VERSION_WIN10_TH2)
return true;
if (!INTERCEPT_EAT(manager, L"gdi32.dll", GetCertificateByHandle,
GETCERTIFICATEBYHANDLE_ID, 20)) {
@@ -206,7 +206,7 @@ bool ProcessMitigationsWin32KDispatcher::SetupService(
GETCERTIFICATESIZE_ID, 16)) {
return false;
}
- if (base::win::GetVersion() < base::win::VERSION_WIN10)
+ if (base::win::GetVersion() < base::win::VERSION_WIN10_TH2)
return true;
if (!INTERCEPT_EAT(manager, L"gdi32.dll", GetCertificateSizeByHandle,
GETCERTIFICATESIZEBYHANDLE_ID, 16)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698