Jacek Caban : jscript: Fixed allocation of script buffer.
Alexandre Julliard
julliard at winehq.org
Wed Sep 17 07:15:06 CDT 2008
Module: wine
Branch: master
Commit: 4e670c1c6bde92bb6d760f7e3aca9850f2862492
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4e670c1c6bde92bb6d760f7e3aca9850f2862492
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Sep 17 03:05:38 2008 +0200
jscript: Fixed allocation of script buffer.
---
dlls/jscript/tests/run.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/jscript/tests/run.c b/dlls/jscript/tests/run.c
index 29947fe..1b40237 100644
--- a/dlls/jscript/tests/run.c
+++ b/dlls/jscript/tests/run.c
@@ -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);
More information about the wine-cvs
mailing list