[PATCH] vbscript: Implemented Asc(try 4)

Shuai Meng mengshuaicalendr at gmail.com
Thu Mar 5 22:39:29 CST 2015


Thanks for commenting.

2015-03-06 0:49 GMT+08:00 Piotr Caban <piotr.caban at gmail.com>:

> On 03/04/15 19:59, Shuai Meng wrote:
>
>> Change log:
>>    Free 'bstr' only when it comes from to_string().
>> ---
>>   dlls/vbscript/global.c      | 26 ++++++++++++++++++++++++--
>>   dlls/vbscript/tests/api.vbs | 42
>> ++++++++++++++++++++++++++++++++++++++++++
>>   2 files changed, 66 insertions(+), 2 deletions(-)
>>
> This function needs to convert the WCHAR to correct character set. In
> order to easily write a test for it ChrW needs to be implemented first.
>
> The test may e.g. look like this:
> Asc(ChrW(261))
> Your implementation will return 261 in this case, on windows it produces
> 97.

I will try to implement ChrW.

>
> Cheers,
> Piotr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150306/b7e79da5/attachment.html>


More information about the wine-devel mailing list