Skip to content

Commit c695204

Browse files
committed
Add error_class_not_available to the condition for regfree fallback
1 parent 2f7150c commit c695204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strings/base_activation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace winrt::impl
4747
// We should not attempt to fallback to regfree for error codes besides class not registered. If the activation is out
4848
// of process then we could have RPC error codes. It would be bad if a class that should only ever be used out of proc
4949
// is erroneously activated inproc.
50-
if ((hr == error_class_not_registered) && reg_free_factory_getter)
50+
if (((hr == error_class_not_registered) || (hr == error_class_not_available)) && reg_free_factory_getter)
5151
{
5252
return reg_free_factory_getter(name, guid, result);
5353
}

0 commit comments

Comments
 (0)