From 0fa39189ae1eea51681d472db38a290bc4df1cfe Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 24 Jan 2024 13:38:10 +0300 Subject: PS_GETNAME: another old atavism removed --- plugins/NewAwaySysMod/src/AwaySys.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'plugins/NewAwaySysMod') 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 "" } -- cgit v1.2.3