diff options
author | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2012-01-01 20:39:34 +0000 |
---|---|---|
committer | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2012-01-01 20:39:34 +0000 |
commit | f251f8ffa34a0b9699aff9ca3ed03fec8f2d2e51 (patch) | |
tree | 976da398337868638ccafce9fbff71239a8449eb /SecureIM/crypt_lists.cpp | |
parent | f39683393b0f9c31559ef05c824774541d9a19be (diff) |
SecureIM: x64 fixes
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@253 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'SecureIM/crypt_lists.cpp')
-rw-r--r-- | SecureIM/crypt_lists.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SecureIM/crypt_lists.cpp b/SecureIM/crypt_lists.cpp index 3387eb7..48fbad1 100644 --- a/SecureIM/crypt_lists.cpp +++ b/SecureIM/crypt_lists.cpp @@ -261,8 +261,8 @@ void addMsg2Queue(pUinKey ptr,WPARAM wParam,LPSTR szMsg) { ptrMessage->nextMessage = NULL;
if(wParam & PREF_UNICODE) {
- int slen = strlen(szMsg)+1;
- int wlen = wcslen((wchar_t *)(szMsg+slen))+1;
+ int slen = (int)strlen(szMsg)+1;
+ int wlen = (int)wcslen((wchar_t *)(szMsg+slen))+1;
ptrMessage->Message = (LPSTR) mir_alloc(slen+wlen*sizeof(WCHAR));
memcpy(ptrMessage->Message,szMsg,slen+wlen*sizeof(WCHAR));
}
|