Module: wine Branch: master Commit: 3cc7574e9c03e4b27b2a06124068ced20bfdcd5e URL: http://source.winehq.org/git/wine.git/?a=commit;h=3cc7574e9c03e4b27b2a061240...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Mar 19 16:54:44 2010 +0100
oleaut32: Move variable declaration outside of the switch statement.
---
dlls/oleaut32/typelib2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c index 8816e9d..6b1aea0 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;