Hi guys:
I found a error in the everything sdk.
// get the search length
static void _Everything_GetSearchTextA(LPSTR buf)
{
DWORD len;
if (_Everything_Search)
{
len = _Everything_GetSearchLengthW();
if (_Everything_IsUnicodeSearch)
{
WideCharToMultiByte(CP_ACP,0,(LPCWSTR )_Everything_Search,-1,buf,len+1,0,0);
return;
}
else
{
CopyMemory(buf,_Everything_Search,len+1);
return;
}
}
*buf = 0;
}
Here, "len = _Everything_GetSearchLengthW();" should correct to "len = _Everything_GetSearchLengthA();"
If not, CopyMemory(buf,_Everything_Search,len+1); will use a wrong len value and cause heap corruption and then crash.
_Everything_GetSearchTextA implement error, cause a crash.
Re: _Everything_GetSearchTextA implement error, cause a crash.
Thanks for your quick reply