Index: ui/views/corewm/cursor_height_provider_win.cc |
diff --git a/ui/views/corewm/cursor_height_provider_win.cc b/ui/views/corewm/cursor_height_provider_win.cc |
index 97ed7a3465e5ab6fac56d1a4497c8d01e7fabb5b..0d28d3801aa8ce2d24f89339f054eaddb073de17 100644 |
--- a/ui/views/corewm/cursor_height_provider_win.cc |
+++ b/ui/views/corewm/cursor_height_provider_win.cc |
@@ -91,7 +91,7 @@ int CalculateCursorHeight(HCURSOR cursor_handle) { |
// Rows are padded to full DWORDs. OR with this mask will set them to 1 |
// to simplify matching with |transparent_mask|. |
- uint32_t last_byte_mask = ~0; |
+ uint32_t last_byte_mask = 0xFFFFFFFF; |
const unsigned char bits_to_shift = sizeof(last_byte_mask) * 8 - |
(bitmap_info.bmiHeader.biWidth % kBitsPeruint32); |
if (bits_to_shift != kBitsPeruint32) |