jscript: Mark some fall-throughs in switch statements

Andrew Talbot andrew.talbot at talbotville.com
Thu Sep 29 16:16:18 CDT 2011


Changelog:
    jscript: Mark some fall-throughs in switch statements.

diff --git a/dlls/jscript/dispex.c b/dlls/jscript/dispex.c
index 0d584f0..e40f370 100644
--- a/dlls/jscript/dispex.c
+++ b/dlls/jscript/dispex.c
@@ -664,6 +664,7 @@ static HRESULT WINAPI DispatchEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc
     switch(wFlags) {
     case DISPATCH_METHOD|DISPATCH_PROPERTYGET:
         wFlags = DISPATCH_METHOD;
+        /* fall through */
     case DISPATCH_METHOD:
     case DISPATCH_CONSTRUCT:
         hres = invoke_prop_func(This, This, prop, wFlags, pdp, pvarRes, &jsexcept, pspCaller);
diff --git a/dlls/jscript/regexp.c b/dlls/jscript/regexp.c
index 0fa13ff..e971b0d 100644
--- a/dlls/jscript/regexp.c
+++ b/dlls/jscript/regexp.c
@@ -4037,6 +4037,7 @@ static HRESULT RegExpConstr_leftContext(script_ctx_t *ctx, vdisp_t *jsthis, WORD
 
         V_VT(retv) = VT_BSTR;
         V_BSTR(retv) = ret;
+        /* fall through */
     }
     case DISPATCH_PROPERTYPUT:
         return S_OK;
@@ -4063,6 +4064,7 @@ static HRESULT RegExpConstr_rightContext(script_ctx_t *ctx, vdisp_t *jsthis, WOR
 
         V_VT(retv) = VT_BSTR;
         V_BSTR(retv) = ret;
+        /* fall through */
     }
     case DISPATCH_PROPERTYPUT:
         return S_OK;



More information about the wine-patches mailing list