diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-24 13:38:10 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-24 13:38:10 +0300 |
commit | 0fa39189ae1eea51681d472db38a290bc4df1cfe (patch) | |
tree | c4c5c8f5970947ed6c62418fd86106166db485a2 /plugins/helpers | |
parent | 60fec7a89a7870d52ebd76315193b105973b1219 (diff) |
PS_GETNAME: another old atavism removed
Diffstat (limited to 'plugins/helpers')
-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)
|