[PATCH] vbscript: Support conversion to string in InStr
4 Aug
4 Aug
1:48 p.m.
Hi Dmitry, On 01.08.2020 02:44, Dmitry Kislyuk wrote:
- if(V_VT(str1v) != VT_BSTR) { - FIXME("Unsupported str1 type %s\n", debugstr_variant(str1v)); - return E_NOTIMPL; - } - str1 = V_BSTR(str1v); + hres = to_string(str1v, &str1); + if(FAILED(hres)) + return hres;
Ideally, we would avoid to_string() duplicating the string if we already have VT_BSTR type. See Left() for an example how it can be implemented. Thanks, Jacek
1957
Age (days ago)
1960
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dmitry Kislyuk -
Jacek Caban