mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-20 21:44:06 +01:00
alloy: win: Fix range check for system cursors (fixes issue #3270)
This commit is contained in:
parent
111b6de46c
commit
fc82de7aa7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user