jscript: Fixed allocation of script buffer.

This commit is contained in:
Jacek Caban 2008-09-17 03:05:38 +02:00 committed by Alexandre Julliard
parent c51ca17892
commit 4e670c1c6b
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ static void run_from_res(const char *name)
data = LoadResource(NULL, src);
len = MultiByteToWideChar(CP_ACP, 0, data, size, NULL, 0);
str = SysAllocStringLen(NULL, len-1);
str = SysAllocStringLen(NULL, len);
len = MultiByteToWideChar(CP_ACP, 0, data, size, str, len);
SET_EXPECT(global_success_d);