| Index: webrtc/modules/desktop_capture/win/cursor.cc
|
| diff --git a/webrtc/modules/desktop_capture/win/cursor.cc b/webrtc/modules/desktop_capture/win/cursor.cc
|
| index 304d5960d5ed7b3c450738ea31bf406b7cf23408..a46c40df9dcfe507987ee68112d8053522563794 100644
|
| --- a/webrtc/modules/desktop_capture/win/cursor.cc
|
| +++ b/webrtc/modules/desktop_capture/win/cursor.cc
|
| @@ -110,11 +110,12 @@ bool HasAlphaChannel(const uint32_t* data, int stride, int width, int height) {
|
| } // namespace
|
|
|
| MouseCursor* CreateMouseCursorFromHCursor(HDC dc, HCURSOR cursor) {
|
| - ICONINFO iinfo;
|
| + ICONINFO iinfo = { 0 };
|
| if (!GetIconInfo(cursor, &iinfo)) {
|
| LOG_F(LS_ERROR) << "Unable to get cursor icon info. Error = "
|
| << GetLastError();
|
| - return NULL;
|
| + iinfo = { 0 };
|
| + assert(GetIconInfo(LoadCursor(nullptr, IDC_ARROW), &iinfo));
|
| }
|
|
|
| int hotspot_x = iinfo.xHotspot;
|
|
|