[PATCH] vbscript: Implemented Asc(try 4)

Piotr Caban piotr.caban at gmail.com
Thu Mar 5 10:49:29 CST 2015


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.

Cheers,
Piotr



More information about the wine-devel mailing list