5 Mar
2015
5 Mar
'15
10:39 p.m.
Thanks for commenting. 2015-03-06 0:49 GMT+08:00 Piotr Caban <piotr.caban(a)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