diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-12-12 07:06:46 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-12-12 07:06:46 +0000 |
commit | ba0eb9d04b41db0a7190a61f518c281423d23d80 (patch) | |
tree | e735362ce3dd77f6ba0fc36f4bed2892f2d4fb87 /protocols/Steam/src/steam_login.cpp | |
parent | 258cfc3509afb2aa0fd6444b59abcfaa27606573 (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_login.cpp')
-rw-r--r-- | protocols/Steam/src/steam_login.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp index b54149b03c..c149f33eb1 100644 --- a/protocols/Steam/src/steam_login.cpp +++ b/protocols/Steam/src/steam_login.cpp @@ -136,7 +136,7 @@ void CSteamProto::OnAuthorizationError(const JSONNode &node) std::string domain = node["emaildomain"].as_string();
CSteamGuardDialog guardDialog(this, domain.c_str());
- if (!guardDialog.DoModal())
+ if (guardDialog.DoModal() != DIALOG_RESULT_OK)
{
delSetting("GuardId");
delSetting("GuardCode");
@@ -165,7 +165,7 @@ void CSteamProto::OnAuthorizationError(const JSONNode &node) CSteamCaptchaDialog captchaDialog(this, (BYTE*)response->pData, response->dataLength);
delete response;
- if (!captchaDialog.DoModal())
+ if (captchaDialog.DoModal() != DIALOG_RESULT_OK)
{
delSetting("CaptchaId");
delSetting("CaptchaText");
|