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

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

Issue 2918583003: Fix BOOLEAN truncation warning in sync_policy.cc. (Closed)
Patch Set: rebase Created 3 years, 6 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/sync_policy.cc
diff --git a/sandbox/win/src/sync_policy.cc b/sandbox/win/src/sync_policy.cc
index 7ef094ff73e5c7c0faed13985f92466eda381965..5dd8549f77d8313046fb0590f0f6ec0f3d779a14 100644
--- a/sandbox/win/src/sync_policy.cc
+++ b/sandbox/win/src/sync_policy.cc
@@ -195,7 +195,7 @@ NTSTATUS SyncPolicy::CreateEventAction(EvalResult eval_result,
HANDLE local_handle = NULL;
status = NtCreateEvent(&local_handle, EVENT_ALL_ACCESS, &object_attributes,
static_cast<EVENT_TYPE>(event_type),
- static_cast<BOOLEAN>(initial_state));
+ static_cast<BOOLEAN>(initial_state != 0));
if (NULL == local_handle)
return status;
« 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