Chromium Code Reviews| Index: base/synchronization/waitable_event_win.cc |
| =================================================================== |
| --- base/synchronization/waitable_event_win.cc (revision 106774) |
| +++ base/synchronization/waitable_event_win.cc (working copy) |
| @@ -75,7 +75,7 @@ |
| // static |
| size_t WaitableEvent::WaitMany(WaitableEvent** events, size_t count) { |
| HANDLE handles[MAXIMUM_WAIT_OBJECTS]; |
| - CHECK_LE(count, MAXIMUM_WAIT_OBJECTS) |
| + DCHECK_LE(count, MAXIMUM_WAIT_OBJECTS) |
|
jar (doing other things)
2011/10/23 00:36:28
This protects us from a buffer overrun if we could
|
| << "Can only wait on " << MAXIMUM_WAIT_OBJECTS << " with WaitMany"; |
| for (size_t i = 0; i < count; ++i) |