Commit a4ee4779 authored by drbasic's avatar drbasic Committed by Commit bot

Fix sbox_validation_tests for Server 2012R2

Windows Server 2012 returns code 1285L instead of ERROR_ACCESS_DENIED.
So sbox_validation_tests fails on Windows Server 2012 R2.

R=cpu@chromium.org
BUG=411859

Review URL: https://codereview.chromium.org/543003002

Cr-Commit-Position: refs/heads/master@{#294335}
parent de4fd92b
......@@ -267,7 +267,7 @@ int TestOpenAlternateDesktop(wchar_t *desktop_name) {
DACL_SECURITY_INFORMATION, NULL, NULL,
NULL, NULL);
::CloseHandle(test_handle);
if (result != ERROR_ACCESS_DENIED) {
if (result == ERROR_SUCCESS) {
return SBOX_TEST_SUCCEEDED;
}
} else if (::GetLastError() != ERROR_ACCESS_DENIED) {
......
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