Skip to content

Commit

Permalink
chore: Initialize Discord Rich Presence structure to prevent undefine…
Browse files Browse the repository at this point in the history
…d behavior
  • Loading branch information
Loukious committed Nov 12, 2024
1 parent 0963838 commit bcd1a53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static void UpdateDiscordPresence() {
if (videoTime > 0) {
Video vid;
DiscordRichPresence discordRichPresence;

memset(&discordRichPresence, 0, sizeof(discordRichPresence));
std::vector<std::string> videoId = vid.getvidinfo();
std::string currentInfoStr = vid.join(videoId, ":");
if (oldinfo != currentInfoStr) {
Expand Down Expand Up @@ -107,7 +107,7 @@ static void UpdateDiscordPresence() {
DWORD WINAPI MainThread(LPVOID param) {

g_discord->initialize();

g_memoryUtility->initialize();


Expand Down

0 comments on commit bcd1a53

Please sign in to comment.