summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_dialogs.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-12-12 07:06:46 +0000
committerRobert Pösel <robyer@seznam.cz>2015-12-12 07:06:46 +0000
commitba0eb9d04b41db0a7190a61f518c281423d23d80 (patch)
treee735362ce3dd77f6ba0fc36f4bed2892f2d4fb87 /protocols/Steam/src/steam_dialogs.cpp
parent258cfc3509afb2aa0fd6444b59abcfaa27606573 (diff)
Steam: Use more explicit check for modal dialog's result
git-svn-id: http://svn.miranda-ng.org/main/trunk@15839 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_dialogs.cpp')
-rw-r--r--protocols/Steam/src/steam_dialogs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_dialogs.cpp b/protocols/Steam/src/steam_dialogs.cpp
index a773a3bd3b..eac9710528 100644
--- a/protocols/Steam/src/steam_dialogs.cpp
+++ b/protocols/Steam/src/steam_dialogs.cpp
@@ -27,7 +27,7 @@ void CSteamPasswordEditor::OnOk(CCtrlButton*)
if (m_savePermanently.Enabled())
m_proto->setTString("Password", m_proto->password);
- EndDialog(m_hwnd, 1);
+ EndDialog(m_hwnd, DIALOG_RESULT_OK);
}
void CSteamPasswordEditor::OnClose()
@@ -63,7 +63,7 @@ void CSteamGuardDialog::OnInitDialog()
void CSteamGuardDialog::OnOk(CCtrlButton*)
{
mir_strncpy(m_guardCode, ptrA(m_text.GetTextA()), _countof(m_guardCode));
- EndDialog(m_hwnd, 1);
+ EndDialog(m_hwnd, DIALOG_RESULT_OK);
}
void CSteamGuardDialog::OnClose()
@@ -111,7 +111,7 @@ void CSteamCaptchaDialog::OnInitDialog()
void CSteamCaptchaDialog::OnOk(CCtrlButton*)
{
mir_strncpy(m_captchaText, ptrA(m_text.GetTextA()), _countof(m_captchaText));
- EndDialog(m_hwnd, 1);
+ EndDialog(m_hwnd, DIALOG_RESULT_OK);
}
void CSteamCaptchaDialog::OnClose()