Skip to content

Fix catalog connection failure due to AppCapability::CreateWithProcessIdForUser throwing E_INVALIDARG when called with a null user on Windows 10 v1903 #5475

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

Merged
merged 3 commits into from
May 27, 2025

Conversation

Fulgen301
Copy link
Contributor

@Fulgen301 Fulgen301 commented May 22, 2025

AppCapability::CreateWithProcessIdForUser does not accept a null user on Windows 10 v1903. Treat this case as if the API didn't exist.

Fixes #5378.


Microsoft Reviewers: Open in CodeFlow

AppCapability::CreateWithProcessIdForUser throwing E_INVALIDARG when called
with a null user on Windows 10 v1903

`AppCapability::CreateWithProcessIdForUser` does not accept a null
user on Windows 10 v1903. Treat this case as if the API didn't exist.
@Fulgen301 Fulgen301 requested a review from a team as a code owner May 22, 2025 12:24
Copy link
Member

@JohnMcPMS JohnMcPMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spent quite a while trying to find a way to get a non-null User to pass, but never found one that works for us. I did find the change that made null work, but it ultimately ends up ignoring the value, not using it as a signal to retrieve some default.

So while it irks me, I will not make the perfect stand in the way of the good.

@Fulgen301
Copy link
Contributor Author

I spent quite a while trying to find a way to get a non-null User to pass, but never found one that works for us

Yea, User is sadly quite limited in that regard...

@JohnMcPMS
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@JohnMcPMS JohnMcPMS merged commit 68e3fc2 into microsoft:master May 27, 2025
9 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
3 participants