Skip to content

Commit 286cd85

Browse files
committed
Fix out assignment on DiscordPresence
1 parent 6e0e5aa commit 286cd85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

DiscordPresence/DiscordPresenceExtension.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ public DiscordPresenceContext(nint pluginHandle, IPluginPresetConfig presetConfi
4040
return;
4141
}
4242

43-
DiscordPresenceInfo** info = null;
43+
DiscordPresenceInfo* info = null;
4444

4545
void* ptr = ComInterfaceMarshaller<IPluginPresetConfig>.ConvertToUnmanaged(presetConfig);
46-
HResult result = method(ptr, info);
46+
HResult result = method(ptr, &info);
4747

48-
if (result == HResult.Ok && info != null && *info != null)
48+
if (result == HResult.Ok && info != null)
4949
{
50-
_data = *info;
50+
_data = info;
5151
}
5252
}
5353

0 commit comments

Comments
 (0)