Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Fix null check in SetDpiCompensatedEffectInput #338

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

rickbrew
Copy link
Contributor

@rickbrew rickbrew commented Dec 4, 2022

The SetDpiCompensatedEffectInput method has a simple transcription error in the null check.

Without this fix, both paths in the code are wrong. If inputBitmap is not null, then the effect's input is set to null and the method returns. If inputBitmap is null, the method will try to call its GetDpi() method resulting in an AV/crash.

Fixes #336

@tannergooding tannergooding merged commit dc79684 into terrafx:main Dec 6, 2022
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.

Transcription bug in SetDpiCompensatedEffectInput
2 participants