Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Accurate error propagation from RoGetActivationFactory#559

Merged
kennykerr merged 2 commits intomastermicrosoft/cppwinrt:masterfrom
kennykerr-activation-propmicrosoft/cppwinrt:kennykerr-activation-propCopy head branch name to clipboard
Mar 16, 2020
Merged

Accurate error propagation from RoGetActivationFactory#559
kennykerr merged 2 commits intomastermicrosoft/cppwinrt:masterfrom
kennykerr-activation-propmicrosoft/cppwinrt:kennykerr-activation-propCopy head branch name to clipboard

Conversation

@kennykerr
Copy link
Collaborator

@kennykerr kennykerr commented Mar 16, 2020

Fixes #552 to properly capture and propagate error information from RoGetActivationFactory when fallback fails.

RoGetActivationFactory returns REGDB_E_CLASSNOTREG rather than CLASS_E_CLASSNOTAVAILABLE when activation fails. The target DLL may return CLASS_E_CLASSNOTAVAILABLE from DllGetActivationFactory. That's why a few of the tests needed updating since those tests were relying on the previous behavior where RoGetActivationFactory was sidestepped entirely.

@kennykerr kennykerr requested a review from Scottj1s March 16, 2020 18:02
@kennykerr kennykerr merged commit b722907 into master Mar 16, 2020
@kennykerr kennykerr deleted the kennykerr-activation-prop branch March 16, 2020 19:14
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.

get_activation_factory does not always propagate the correct error info

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.