[PATCH] vbscript: Implemented String(try 3)

Piotr Caban piotr.caban at gmail.com
Fri Nov 7 04:38:51 CST 2014


On 11/07/14 04:36, Shuai Meng wrote:
>    used mod other than division when the second argument(length of
> string) is grater than 256;
Your test was already showing that it doesn't work this way. You will 
probably need to use MultiByteToWideChar function here.

+    case  VT_ARRAY|VT_BYREF|VT_VARIANT:
+        return DISP_E_TYPEMISMATCH;
+    default:
+        hres = to_short(arg + 1, &tmp);
There's no need to handle VT_ARRAY|VT_BYREF|VT_VARIANT case separately. 
It will be done by to_short function.

Thanks,
Piotr



More information about the wine-devel mailing list