diff options
Diffstat (limited to 'plugins/helpers/gen_helpers.cpp')
-rw-r--r-- | plugins/helpers/gen_helpers.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/helpers/gen_helpers.cpp b/plugins/helpers/gen_helpers.cpp index 3bf6e4976f..f1e5a1abde 100644 --- a/plugins/helpers/gen_helpers.cpp +++ b/plugins/helpers/gen_helpers.cpp @@ -22,11 +22,7 @@ wchar_t* Hlp_GetProtocolName(const char *proto)
{
- char protoname[256];
- if ((!ProtoServiceExists(proto, PS_GETNAME)) || (CallProtoService(proto, PS_GETNAME, (WPARAM)sizeof(protoname), (LPARAM)protoname)))
- return nullptr;
-
- return mir_a2u(protoname);
+ return mir_a2u(proto);
}
wchar_t* Hlp_GetDlgItemText(HWND hwndDlg, int nIDDlgItem)
|