[pkg-wine-party] [SCM] Debian Wine packaging branch, wheezy, updated. wine-1.4-7-302-gb61b690
The following commit has been merged in the wheezy branch:
commit c07eadd765c33a92d657fd30ba46a0ddd7ed335c
Author: Jacek Caban <jacek@codeweavers.com>
Date: Wed Apr 18 13:50:19 2012 +0200
jscript: Correctly handle empty matches in String.replace.
(cherry picked from commit c1cb8f29b022ca1a1cf9da560f70d4b83337a9de)
diff --git a/dlls/jscript/string.c b/dlls/jscript/string.c
index 14877e9..3329c88 100644
--- a/dlls/jscript/string.c
+++ b/dlls/jscript/string.c
@@ -868,6 +868,9 @@ static HRESULT String_replace(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DI
}
if(FAILED(hres))
break;
+
+ if(!match.len)
+ cp++;
}else {
match.str = strstrW(cp, match_str);
if(!match.str)
--
Debian Wine packaging
Reply to: