diff options
author | jiayl@webrtc.org <jiayl@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-07-15 20:32:03 +0000 |
---|---|---|
committer | jiayl@webrtc.org <jiayl@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-07-15 20:32:03 +0000 |
commit | df6904dedb834da635076f25c72929aed292d49b (patch) | |
tree | e92e3bab45ed584e5336fdccf681bd556f4157eb /modules | |
parent | a09832591aa31367ffbc260490213f1b6e96e2ce (diff) | |
download | webrtc-df6904dedb834da635076f25c72929aed292d49b.tar.gz |
Fix an invalid memory access due to typo in win/cursor.cc.
BUG=crbug/391468
R=sergeyu@chromium.org
Review URL: https://webrtc-codereview.appspot.com/19949004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@6698 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'modules')
-rw-r--r-- | modules/desktop_capture/win/cursor.cc | 2 |
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 |