summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/desktop_capture/win/cursor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/desktop_capture/win/cursor.cc b/modules/desktop_capture/win/cursor.cc
index 00055c44..e3c272ce 100644
--- a/modules/desktop_capture/win/cursor.cc
+++ b/modules/desktop_capture/win/cursor.cc
@@ -197,7 +197,7 @@ MouseCursor* CreateMouseCursorFromHCursor(HDC dc, HCURSOR cursor) {
// The XOR mask becomes the color bitmap.
memcpy(
- image->data(), mask_plane + (width * height), image->stride() * width);
+ image->data(), mask_plane + (width * height), image->stride() * height);
}
// Reconstruct transparency from the mask if the color image does not has