diff --git a/libcef/browser/native/cursor_util_win.cc b/libcef/browser/native/cursor_util_win.cc index 189bda2ee..4356c64cb 100644 --- a/libcef/browser/native/cursor_util_win.cc +++ b/libcef/browser/native/cursor_util_win.cc @@ -131,7 +131,8 @@ LPCWSTR ToCursorID(ui::mojom::CursorType type) { } bool IsSystemCursorID(LPCWSTR cursor_id) { - return cursor_id >= IDC_ARROW; // See WinUser.h + // Check the range of values from WinUser.h. + return cursor_id >= IDC_ARROW && cursor_id <= IDC_HELP; } } // namespace