1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 18:59:09 +00:00

Fix winmain use and a couple of remaining SafeStrings => plString

This commit is contained in:
2014-01-12 17:59:20 -08:00
parent ae1bbdc1d6
commit f1131bbb25
4 changed files with 12 additions and 19 deletions

View File

@ -872,7 +872,7 @@ static void LoadUserPass (LoginDialogParam *pLoginParam)
ZeroMemory(cryptKey, sizeof(cryptKey));
GetCryptKey(cryptKey, arrsize(cryptKey));
char* temp;
plString temp;
pLoginParam->remember = false;
pLoginParam->username[0] = '\0';
@ -891,12 +891,11 @@ static void LoadUserPass (LoginDialogParam *pLoginParam)
if (memcmp(cryptKey, savedKey, sizeof(savedKey)) == 0)
{
temp = stream->ReadSafeString();
temp = stream->ReadSafeString_TEMP();
if (temp)
if (!temp.IsEmpty())
{
StrCopy(pLoginParam->username, temp, kMaxAccountNameLength);
delete[] temp;
StrCopy(pLoginParam->username, temp.c_str(), kMaxAccountNameLength);
}
pLoginParam->remember = stream->ReadBool();