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

Unified Diff: sandbox/win/tests/validation_tests/commands.cc

Issue 382613002: Fixes for re-enabling more MSVC level 4 warnings: sandbox/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments + cleanup Created 6 years, 5 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 | « sandbox/win/tests/common/controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/tests/validation_tests/commands.cc
diff --git a/sandbox/win/tests/validation_tests/commands.cc b/sandbox/win/tests/validation_tests/commands.cc
index 26133477267b865561332478a07ef8da0528d0df..45717b472db283b9f2344a396bc76dd4a0447e20 100644
--- a/sandbox/win/tests/validation_tests/commands.cc
+++ b/sandbox/win/tests/validation_tests/commands.cc
@@ -276,8 +276,8 @@ int TestOpenAlternateDesktop(wchar_t *desktop_name) {
}
// Open by name with WRITE_DAC.
- if ((desktop = ::OpenDesktop(desktop_name, 0, FALSE, WRITE_DAC)) ||
- ::GetLastError() != ERROR_ACCESS_DENIED) {
+ desktop = ::OpenDesktop(desktop_name, 0, FALSE, WRITE_DAC);
+ if (desktop || ::GetLastError() != ERROR_ACCESS_DENIED) {
::CloseDesktop(desktop);
return SBOX_TEST_SUCCEEDED;
}
« no previous file with comments | « sandbox/win/tests/common/controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698