File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Rubberduck.VBEEditor/ComManagement/TypeLibs/Utility Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- using System . Runtime . InteropServices . ComTypes ;
1
+ using System ;
2
+ using System . Runtime . InteropServices . ComTypes ;
2
3
3
4
namespace Rubberduck . JunkDrawer . Hacks
4
5
{
@@ -28,11 +29,10 @@ public static bool IsValidVBAConstant(this VARDESC varDesc)
28
29
// TODO: Move the function to a better home and avoid duplication of constants (see TypeInfoWrapper)
29
30
const int _ourConstantsDispatchMemberIDRangeStart = unchecked ( ( int ) 0xFEDC0000 ) ;
30
31
const int _ourConstantsDispatchMemberIDRangeBitmaskCheck = unchecked ( ( int ) 0xFFFF0000 ) ;
31
- const int _ourConstantsDispatchMemberIDIndexBitmask = unchecked ( ( int ) 0x0000FFFF ) ;
32
- if ( ( varDesc . memid & _ourConstantsDispatchMemberIDRangeBitmaskCheck ) >= _ourConstantsDispatchMemberIDRangeStart )
33
- {
34
- return varDesc . varkind == VARKIND . VAR_STATIC && varDesc . desc . lpvarValue != 0 ;
35
- }
32
+
33
+ return ( varDesc . memid & _ourConstantsDispatchMemberIDRangeBitmaskCheck ) >= _ourConstantsDispatchMemberIDRangeStart
34
+ && varDesc . varkind == VARKIND . VAR_STATIC
35
+ && varDesc . desc . lpvarValue != IntPtr . Zero ;
36
36
}
37
37
}
38
38
}
You can’t perform that action at this time.
0 commit comments