diff options
author | George Hazan <george.hazan@gmail.com> | 2013-02-04 12:58:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-02-04 12:58:58 +0000 |
commit | 46283507e92ad634898717857c3860f28c9baf69 (patch) | |
tree | ae57be6c2009ba5bb0fae8ffe6d1ac7f423c0dae /plugins/MyDetails/src/mydetails.cpp | |
parent | 351973c482f32feb84b2503f2deaa24ca533dd81 (diff) |
settings ICQ own nick name from MyDetails corrupts it
git-svn-id: http://svn.miranda-ng.org/main/trunk@3418 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails/src/mydetails.cpp')
-rw-r--r-- | plugins/MyDetails/src/mydetails.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/MyDetails/src/mydetails.cpp b/plugins/MyDetails/src/mydetails.cpp index 8179b90600..ddd65b54ad 100644 --- a/plugins/MyDetails/src/mydetails.cpp +++ b/plugins/MyDetails/src/mydetails.cpp @@ -357,10 +357,10 @@ static INT_PTR PluginCommand_SetMyNicknameUI(WPARAM wParam,LPARAM lParam) static INT_PTR PluginCommand_SetMyNickname(WPARAM wParam,LPARAM lParam)
{
- char * proto = (char *)wParam;
+ char *proto = (char*)wParam;
if (proto != NULL) {
for (int i = 0 ; i < protocols->GetSize() ; i++) {
- if (_stricmp(protocols->Get(i)->name, proto) == 0) {
+ if ( _stricmp(protocols->Get(i)->name, proto) == 0) {
if ( !protocols->Get(i)->CanSetNick())
return -2;
@@ -378,12 +378,11 @@ static INT_PTR PluginCommand_SetMyNickname(WPARAM wParam,LPARAM lParam) static INT_PTR PluginCommand_GetMyNickname(WPARAM wParam,LPARAM lParam)
{
- TCHAR* ret = (TCHAR*)lParam;
- char * proto = (char *)wParam;
-
+ TCHAR *ret = (TCHAR*)lParam;
if (ret == NULL)
return -1;
+ char *proto = (char*)wParam;
if (proto == NULL) {
if (protocols->default_nick != NULL)
lstrcpyn(ret, protocols->default_nick, MS_MYDETAILS_GETMYNICKNAME_BUFFER_SIZE);
|