23 Nov
2008
23 Nov
'08
6:26 p.m.
Hi Andrew, Andrew Nguyen wrote:
This is an attempt to implement the String.toLowerCase method. The added jscript tests pass on Windows XP. --- dlls/jscript/string.c | 41 +++++++++++++++++++++++++++++++++++++++-- dlls/jscript/tests/api.js | 11 +++++++++++ 2 files changed, 50 insertions(+), 2 deletions(-)
+ res = heap_alloc((length+1)*sizeof(WCHAR)); + if (!res) + return E_OUTOFMEMORY;
You can avoid this allocation by using SysAllocStringLen. Jacek