5 Mar
2015
5 Mar
'15
10:49 a.m.
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