summaryrefslogtreecommitdiff
path: root/plugins/AVS/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AVS/src')
-rw-r--r--plugins/AVS/src/userInfo.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/AVS/src/userInfo.cpp b/plugins/AVS/src/userInfo.cpp
index fd36371454..3b7a4bd129 100644
--- a/plugins/AVS/src/userInfo.cpp
+++ b/plugins/AVS/src/userInfo.cpp
@@ -406,14 +406,9 @@ public:
SetMyAvatar(NULL, (LPARAM)L"");
}
else {
- if (char *proto = GetSelectedProtocol()) {
- char description[256];
- CallProtoService(proto, PS_GETNAME, _countof(description), (LPARAM)description);
- wchar_t *descr = mir_a2u(description);
- if (MessageBox(m_hwnd, TranslateT("Are you sure you want to remove your avatar?"), descr, MB_YESNO) == IDYES)
+ if (char *proto = GetSelectedProtocol())
+ if (MessageBox(m_hwnd, TranslateT("Are you sure you want to remove your avatar?"), _A2T(proto), MB_YESNO) == IDYES)
SetMyAvatar((WPARAM)proto, (LPARAM)L"");
- mir_free(descr);
- }
}
}