Skip to content

Conversation

@FrogTheFrog
Copy link
Contributor

Description

Fixed a stupid assumption that source id 0 is always available, instead we now fallback to first source id.

The test data set was also updated to non-zero ids, which reproduced the crash, however with the fix all tests are green again.

Issues Fixed or Closed

Should fix the Sunshine crash in LizardByte/Sunshine#3770

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update (updates to dependencies)
  • Documentation update (changes to documentation)
  • Repository update (changes to repository files, e.g. .github/...)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the in code docstring/documentation-blocks for new or existing methods/components

@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Apr 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.22%. Comparing base (aa72d11) to head (8d5c50c).
Report is 10 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #146   +/-   ##
=======================================
  Coverage   93.22%   93.22%           
=======================================
  Files          34       34           
  Lines        2124     2124           
  Branches     1085     1085           
=======================================
  Hits         1980     1980           
- Misses         75       82    +7     
+ Partials       69       62    -7     
Flag Coverage Δ
Linux 93.75% <ø> (ø)
Windows 92.99% <100.00%> (ø)
macOS 74.43% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/windows/win_display_device_general.cpp 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

@ReenigneArcher ReenigneArcher merged commit 13a4aca into LizardByte:master Apr 11, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants