Skip to content

Commit

Permalink
Use instance field, not parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuelie committed Aug 27, 2024
1 parent b30dd0e commit 3ef785a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shmuelie.WinRTServer/ComServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public unsafe bool RegisterClassFactory(BaseClassFactory factory, ComWrappers co

factory.InstanceCreated += Factory_InstanceCreated;

nint wrapper = comWrappers.GetOrCreateComInterfaceForObject(new BaseClassFactoryWrapper(factory, comWrappers), CreateComInterfaceFlags.None);
nint wrapper = this.comWrappers.GetOrCreateComInterfaceForObject(new BaseClassFactoryWrapper(factory, comWrappers), CreateComInterfaceFlags.None);

uint cookie;
CoRegisterClassObject(&clsid, (IUnknown*)wrapper, CLSCTX.CLSCTX_LOCAL_SERVER, (REGCLS.REGCLS_MULTIPLEUSE | REGCLS.REGCLS_SUSPENDED), &cookie).ThrowOnFailure();
Expand Down

0 comments on commit 3ef785a

Please sign in to comment.