summaryrefslogtreecommitdiff
path: root/plugins/NewAwaySysMod/src/AwaySys.cpp
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/NewAwaySysMod/src/AwaySys.cpp
parent60fec7a89a7870d52ebd76315193b105973b1219 (diff)
PS_GETNAME: another old atavism removed
Diffstat (limited to 'plugins/NewAwaySysMod/src/AwaySys.cpp')
-rw-r--r--plugins/NewAwaySysMod/src/AwaySys.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/NewAwaySysMod/src/AwaySys.cpp b/plugins/NewAwaySysMod/src/AwaySys.cpp
index eb50f63ee7..c3287605f5 100644
--- a/plugins/NewAwaySysMod/src/AwaySys.cpp
+++ b/plugins/NewAwaySysMod/src/AwaySys.cpp
@@ -462,12 +462,9 @@ INT_PTR srvVariablesHandler(WPARAM, LPARAM lParam)
return NULL; // return it now, as later we change NULL to ""
}
else if (!mir_wstrcmp(ai->argv.w[0], VAR_PROTOCOL)) {
- if (VarParseData.szProto) {
- CString AnsiResult;
- CallProtoService(VarParseData.szProto, PS_GETNAME, 256, (LPARAM)AnsiResult.GetBuffer(256));
- AnsiResult.ReleaseBuffer();
- Result = _A2T(AnsiResult);
- }
+ if (VarParseData.szProto)
+ Result = _A2T(VarParseData.szProto);
+
if (Result == nullptr) // if we didn't find a message with specified title
return NULL; // return it now, as later we change NULL to ""
}