| Index: media/base/user_input_monitor_win.cc
|
| diff --git a/media/base/user_input_monitor_win.cc b/media/base/user_input_monitor_win.cc
|
| index 3e172c418d8561a4eac9e4855b198db4229af9db..19d27b7e7503d3d216f3df83574bf7d8bedae343 100644
|
| --- a/media/base/user_input_monitor_win.cc
|
| +++ b/media/base/user_input_monitor_win.cc
|
| @@ -180,7 +180,7 @@ LRESULT UserInputMonitorWinCore::OnInput(HRAWINPUT input_handle) {
|
| UINT size = 0;
|
| UINT result = GetRawInputData(
|
| input_handle, RID_INPUT, NULL, &size, sizeof(RAWINPUTHEADER));
|
| - if (result == -1) {
|
| + if (result == static_cast<UINT>(-1)) {
|
| PLOG(ERROR) << "GetRawInputData() failed";
|
| return 0;
|
| }
|
| @@ -191,7 +191,7 @@ LRESULT UserInputMonitorWinCore::OnInput(HRAWINPUT input_handle) {
|
| RAWINPUT* input = reinterpret_cast<RAWINPUT*>(buffer.get());
|
| result = GetRawInputData(
|
| input_handle, RID_INPUT, buffer.get(), &size, sizeof(RAWINPUTHEADER));
|
| - if (result == -1) {
|
| + if (result == static_cast<UINT>(-1)) {
|
| PLOG(ERROR) << "GetRawInputData() failed";
|
| return 0;
|
| }
|
|
|