Andrew Talbot : jscript: Add breaks to some switch statements.

Alexandre Julliard julliard at winehq.org
Mon Oct 10 10:25:35 CDT 2011


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

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Sat Oct  8 20:10:24 2011 +0100

jscript: Add breaks to some switch statements.

---

 dlls/jscript/regexp.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/jscript/regexp.c b/dlls/jscript/regexp.c
index 0fa13ff..e38e6ea 100644
--- a/dlls/jscript/regexp.c
+++ b/dlls/jscript/regexp.c
@@ -4037,9 +4037,10 @@ static HRESULT RegExpConstr_leftContext(script_ctx_t *ctx, vdisp_t *jsthis, WORD
 
         V_VT(retv) = VT_BSTR;
         V_BSTR(retv) = ret;
+        break;
     }
     case DISPATCH_PROPERTYPUT:
-        return S_OK;
+        break;
     default:
         FIXME("unsupported flags\n");
         return E_NOTIMPL;
@@ -4063,9 +4064,10 @@ static HRESULT RegExpConstr_rightContext(script_ctx_t *ctx, vdisp_t *jsthis, WOR
 
         V_VT(retv) = VT_BSTR;
         V_BSTR(retv) = ret;
+        break;
     }
     case DISPATCH_PROPERTYPUT:
-        return S_OK;
+        break;
     default:
         FIXME("unsupported flags\n");
         return E_NOTIMPL;




More information about the wine-cvs mailing list