Rob Shearman : jscript: Make sure to initialise the string output parameter in run_exec.

Alexandre Julliard julliard at winehq.org
Thu Dec 31 07:42:43 CST 2009


Module: wine
Branch: master
Commit: 07183b28eb9a501c8da77a4295235b0690f9f0a2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=07183b28eb9a501c8da77a4295235b0690f9f0a2

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Wed Dec 30 17:33:52 2009 +0000

jscript: Make sure to initialise the string output parameter in run_exec.

---

 dlls/jscript/regexp.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/jscript/regexp.c b/dlls/jscript/regexp.c
index ff9807b..05b6062 100644
--- a/dlls/jscript/regexp.c
+++ b/dlls/jscript/regexp.c
@@ -3642,6 +3642,9 @@ static HRESULT run_exec(script_ctx_t *ctx, vdisp_t *jsthis, VARIANT *arg, jsexce
         SysFreeString(string);
         set_last_index(regexp, 0);
         *ret = VARIANT_FALSE;
+        if(input) {
+            *input = NULL;
+        }
         return S_OK;
     }
 




More information about the wine-cvs mailing list