Don't add MinidumpAccount if it doesn't exist
Apparently this is crashing now.
This commit is contained in:
parent
7b75dc3e05
commit
96236d2666
@ -265,7 +265,9 @@ bool UploadAndDeleteCrashDump(const char *path, char *response, int maxlen)
|
||||
{
|
||||
IWebForm *form = webternet->CreateForm();
|
||||
|
||||
form->AddString("UserID", g_pSM->GetCoreConfigValue("MinidumpAccount"));
|
||||
const char *minidumpAccount = g_pSM->GetCoreConfigValue("MinidumpAccount");
|
||||
if (minidumpAccount) form->AddString("UserID", minidumpAccount);
|
||||
|
||||
form->AddString("GameDirectory", g_pSM->GetGameFolderName());
|
||||
form->AddString("ExtensionVersion", SMEXT_CONF_VERSION);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user