Skip to content

Commit

Permalink
* Fix crash bug when logging in for the first time.
Browse files Browse the repository at this point in the history
  • Loading branch information
iProgramMC committed Jun 2, 2024
1 parent cd437f8 commit fb06761
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/windows/LogonDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ BOOL LogonDialogOnCommand(HWND hWnd, WPARAM wParam)
buff[len] = 0;

GetLocalSettings()->SetToken(MakeStringFromTString(buff));
GetDiscordInstance()->ResetGatewayURL();
if (GetDiscordInstance())
GetDiscordInstance()->ResetGatewayURL();
EndDialog(hWnd, IDOK);
return TRUE;
}
Expand Down

0 comments on commit fb06761

Please sign in to comment.