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

Fix for crash in issue 13822 #13869

Merged
merged 3 commits into from
Dec 8, 2023

Conversation

ShadowMarker789
Copy link
Contributor

What does the pull request do?

This fixes a crash in issue 13822 when remote terminal services are involved.

What is the current behavior?

The incorrect behaviour is repeated exceptions being thrown when the presentation call returns an occluded status-code indicating that nothing was actually done.

The default Microcom behaviour of interpreting a non-zero code as a catastrophic failure was not appropriate for present. The IDL file has been modified to use an Int32 instead.

What is the updated/expected behavior with this PR?

Present calls no longer throw exceptions when the desktop is occluded via a remote terminal services connection going into standby or the screen locking.

The crash I could only get to replicate when the debugger was attached, which was curious.

With the fix in place I was able to seamlessly transition from remote desktop to remote-desktop-locked to remote-desktop-idle-disconnected to a physical session and all the way back again without any disruptions.

How was the solution implemented (if it's not obvious)?

The IDL file was modified to return a plain Int32 rather than a HRESULT

Checklist

Breaking changes

Not aware of any.

Obsoletions / Deprecations

Not applicable

Fixed issues

#13822

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0042729-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0042767-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Dec 8, 2023
Merged via the queue into AvaloniaUI:master with commit 5289b9a Dec 8, 2023
6 checks passed
@maxkatz6 maxkatz6 added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Jan 17, 2024
maxkatz6 added a commit that referenced this pull request Jan 17, 2024
Co-authored-by: michael.david.howard@outlook.com <michael.david.howard@outlook.com>
Co-authored-by: Max Katz <maxkatz6@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants