summaryrefslogtreecommitdiff
path: root/plugins/helpers
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-24 13:38:10 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-24 13:38:10 +0300
commit0fa39189ae1eea51681d472db38a290bc4df1cfe (patch)
treec4c5c8f5970947ed6c62418fd86106166db485a2 /plugins/helpers
parent60fec7a89a7870d52ebd76315193b105973b1219 (diff)
PS_GETNAME: another old atavism removed
Diffstat (limited to 'plugins/helpers')
-rw-r--r--plugins/helpers/gen_helpers.cpp6
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)