Skip to content

cs-winforms-unpackaged doesn't check MddBootstrap.Initialize() return code #48

@DrusTheAxe

Description

@DrusTheAxe

WindowsAppSDK-Samples/Samples/ResourceManagement/cs-winforms-unpackaged/Program.cs line 25

MddBootstrap.Initialize(8, "preview");

doesn't check the return code. Failures will slide by undetected and calls to other APIs will fail (and likely crash) e.g. if the MSIX packages aren't registered WinRT activations will fail due to E_CLASSDB_NOT_REGISTERED. This needs to be something like

int hr = MddBootstrap.Initialize(8, "preview");
if (hr < 0)
    …error…

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions