[host] don't fail if windows is dumb and doesnt give us the cursor info
This commit is contained in:
1 parent
42ef9964de
commit
604b6bec9a
3 files changed
+4
-16
No files matched your search
@@ -842,21 +842,9 @@ static CaptureResult dxgi_capture()
|
||||
}
|
||||
|
||||
CURSORINFO ci = { .cbSize = sizeof(CURSORINFO) };
|
||||
if (!GetCursorInfo(&ci))
|
||||
ICONINFO ii;
|
||||
if (GetCursorInfo(&ci) && ci.hCursor && GetIconInfo(ci.hCursor, &ii))
|
||||
{
|
||||
DEBUG_WINERROR("GetCursorInfo failed", GetLastError());
|
||||
return CAPTURE_RESULT_ERROR;
|
||||
}
|
||||
|
||||
if (ci.hCursor)
|
||||
{
|
||||
ICONINFO ii;
|
||||
if (!GetIconInfo(ci.hCursor, &ii))
|
||||
{
|
||||
DEBUG_WINERROR("GetIconInfo failed", GetLastError());
|
||||
return CAPTURE_RESULT_ERROR;
|
||||
}
|
||||
|
||||
DeleteObject(ii.hbmMask);
|
||||
DeleteObject(ii.hbmColor);
|
||||
|
||||
|
||||
+1
-1
Submodule repos/LGMP updated: 0102436ae2...2a1477550c.
+1
-1
Submodule repos/PureSpice updated: 35ecd45b0e...4ca2b08d00.
Reference in new issue
Block a user