summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_dialogs.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-09-16 17:46:05 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-09-16 17:46:05 +0000
commitab46b98479555c7106087f7d62b6c89f320ca311 (patch)
treee245d3dce9dfabbeb47aaff36135089613abe026 /protocols/Steam/src/steam_dialogs.cpp
parentaf54e11be6c1c3c997baae19f9d81526d96cd2aa (diff)
Steam:
- attempt to fix numerous crashes git-svn-id: http://svn.miranda-ng.org/main/trunk@15365 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_dialogs.cpp')
-rw-r--r--protocols/Steam/src/steam_dialogs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Steam/src/steam_dialogs.cpp b/protocols/Steam/src/steam_dialogs.cpp
index 116d0a48bc..6ea6aecd28 100644
--- a/protocols/Steam/src/steam_dialogs.cpp
+++ b/protocols/Steam/src/steam_dialogs.cpp
@@ -21,11 +21,11 @@ void CSteamPasswordEditor::OnInitDialog()
void CSteamPasswordEditor::OnOk(CCtrlButton*)
{
- if (m_savePermanently.Enabled())
- m_proto->setTString("Password", m_password.GetText());
if (m_proto->password != NULL)
mir_free(m_proto->password);
m_proto->password = m_password.GetText();
+ if (m_savePermanently.Enabled())
+ m_proto->setTString("Password", m_proto->password);
EndDialog(m_hwnd, 1);
}