File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -156,15 +156,17 @@ private void ReadName(IDiaSymbol symbol, StringBuilder sb)
156156 // If symbol.name equals symbol.undecoratedName there is some extra stuff which can't get undecorated. Try to fix it.
157157 if ( symbol . name == symbol . undecoratedName )
158158 {
159- if ( symbol . name . StartsWith ( "@ILT+" ) )
159+ var name = symbol . name ;
160+ if ( name . StartsWith ( "@ILT+" ) )
160161 {
161- var start = symbol . name . IndexOf ( '(' ) ;
162+ var start = name . IndexOf ( '(' ) ;
162163 if ( start != - 1 )
163164 {
164- var name = symbol . name . Substring ( start + 1 , symbol . name . Length - 1 - start - 1 ) ;
165- sb . Append ( NativeMethods . UnDecorateSymbolName ( name ) ) ;
165+ name = name . Substring ( start + 1 , name . Length - 1 - start - 1 ) ;
166166 }
167167 }
168+
169+ sb . Append ( NativeMethods . UnDecorateSymbolName ( name ) ) ;
168170 }
169171 else
170172 {
You can’t perform that action at this time.
0 commit comments