diff options
author | George Hazan <ghazan@miranda.im> | 2023-03-04 18:05:38 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-03-04 18:05:38 +0300 |
commit | c4c1ce437199d554133859c635c3b986f1b353a9 (patch) | |
tree | 3a42f02723d5cb8d578bd7a21e1fc672cb700fdb /protocols/Sametime/src | |
parent | 98786d882525db4b506eddb011901c60d51857ac (diff) |
fixes #3333 (Tox: search in Find/Add contacts tries to search any random input)
Diffstat (limited to 'protocols/Sametime/src')
-rw-r--r-- | protocols/Sametime/src/sametime_proto.cpp | 4 | ||||
-rw-r--r-- | protocols/Sametime/src/sametime_proto.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Sametime/src/sametime_proto.cpp b/protocols/Sametime/src/sametime_proto.cpp index 3cdd972398..1ca043c75a 100644 --- a/protocols/Sametime/src/sametime_proto.cpp +++ b/protocols/Sametime/src/sametime_proto.cpp @@ -145,12 +145,12 @@ HANDLE CSametimeProto::SearchBasic(const wchar_t* id) ///TODO - add timeout (like at GGPROTO::searchthread)
}
-HWND CSametimeProto::SearchAdvanced(HWND owner)
+HANDLE CSametimeProto::SearchAdvanced(HWND owner)
{
wchar_t buf[512];
if (GetDlgItemText(owner, IDC_EDIT1, buf, _countof(buf))) {
debugLogW(L"CSametimeProto::SearchAdvanced() buf:len=[%d]", mir_wstrlen(buf));
- return (HWND)SearchForUser(T2Utf(buf), TRUE);
+ return (HANDLE)SearchForUser(T2Utf(buf), TRUE);
}
return nullptr;
}
diff --git a/protocols/Sametime/src/sametime_proto.h b/protocols/Sametime/src/sametime_proto.h index 0105d33a39..036ca4d2c0 100644 --- a/protocols/Sametime/src/sametime_proto.h +++ b/protocols/Sametime/src/sametime_proto.h @@ -21,7 +21,7 @@ struct CSametimeProto : public PROTO<CSametimeProto> int GetInfo(MCONTACT hContact, int infoType) override;
HANDLE SearchBasic(const wchar_t* id) override;
- HWND SearchAdvanced(HWND owner) override;
+ HANDLE SearchAdvanced(HWND owner) override;
HWND CreateExtendedSearchUI(HWND owner) override;
int RecvFile(MCONTACT hContact, PROTORECVFILE*) override;
|