Commit 4e670c1c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Fixed allocation of script buffer.

parent c51ca178
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment