summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_account.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-04-09 20:39:05 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-04-09 20:39:05 +0000
commitf2840507e11f4220e606b99bb2e895acd5cb6811 (patch)
tree6033a7134a4381e85dbc02625c88433bb7709ec9 /protocols/Steam/src/steam_account.cpp
parentb80be7b3bbfae105935f49c34e9e64f1760ad08e (diff)
Steam: fixed errors in x64
git-svn-id: http://svn.miranda-ng.org/main/trunk@8904 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_account.cpp')
-rw-r--r--protocols/Steam/src/steam_account.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/Steam/src/steam_account.cpp b/protocols/Steam/src/steam_account.cpp
index 523c5f09f2..4dd80088a4 100644
--- a/protocols/Steam/src/steam_account.cpp
+++ b/protocols/Steam/src/steam_account.cpp
@@ -58,14 +58,15 @@ void CSteamProto::Authorize(SteamWebApi::AuthorizationApi::AuthResult *authResul
DWORD error = 0;
DWORD encryptedSize = 0;
- if ((error = RsaEncrypt(rsaKey, password, strlen(password), NULL, encryptedSize)) != 0)
+ DWORD passwordSize = (DWORD)strlen(password);
+ if ((error = RsaEncrypt(rsaKey, password, passwordSize, NULL, encryptedSize)) != 0)
{
debugLogA("CSteamProto::Rsa: encryption error (%lu)", error);
return;
}
BYTE *encryptedPassword = (BYTE*)mir_calloc(encryptedSize);
- if ((error = RsaEncrypt(rsaKey, password, strlen(password), encryptedPassword, encryptedSize)) != 0)
+ if ((error = RsaEncrypt(rsaKey, password, passwordSize, encryptedPassword, encryptedSize)) != 0)
{
debugLogA("CSteamProto::Rsa: encryption error (%lu)", error);
return;