From 3cc7574e9c03e4b27b2a06124068ced20bfdcd5e Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 19 Mar 2010 16:54:44 +0100 Subject: [PATCH] oleaut32: Move variable declaration outside of the switch statement. --- dlls/oleaut32/typelib2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c index 8816e9dac23..6b1aea062ba 100644 --- a/dlls/oleaut32/typelib2.c +++ b/dlls/oleaut32/typelib2.c @@ -1179,6 +1179,7 @@ static HRESULT ctl2_add_default_value( { VARIANT v; HRESULT hres; + int mask = 0; TRACE("%p %d %d\n", This, V_VT(value), arg_type); @@ -1196,7 +1197,6 @@ static HRESULT ctl2_add_default_value( /* Check if default value can be stored in encoded_value */ switch(arg_type) { - int mask = 0; case VT_I4: case VT_UI4: mask = 0x3ffffff;