File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed
External/Plugins/FlashDebugger/Controls Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class StackframeUI : DockPanelControl
39
39
private List < ListViewItem > wholeFrameStack ;
40
40
private int lastSelected ;
41
41
42
- private List < string > userPaths ;
42
+ // private List<string> userPaths;
43
43
private bool justMyCode ;
44
44
45
45
public StackframeUI ( PluginMain pluginMain , ImageList imageList )
Original file line number Diff line number Diff line change @@ -3210,18 +3210,12 @@ public void ClearRegisteredImages()
3210
3210
/// </summary>
3211
3211
unsafe public string GetLine ( int line )
3212
3212
{
3213
- try
3214
- {
3215
- int sz = ( int ) SPerform ( 2153 , ( uint ) line , 0 ) ;
3216
- byte [ ] buffer = new byte [ sz + 1 ] ;
3217
- fixed ( byte * b = buffer ) SPerform ( 2153 , ( uint ) line , ( uint ) b ) ;
3218
- if ( buffer [ sz - 1 ] == 10 ) sz -- ;
3219
- return Encoding . GetEncoding ( this . CodePage ) . GetString ( buffer , 0 , sz ) ;
3220
- }
3221
- catch
3222
- {
3223
- return "" ;
3224
- }
3213
+ int sz = ( int ) SPerform ( 2153 , ( uint ) line , 0 ) ;
3214
+ byte [ ] buffer = new byte [ sz + 1 ] ;
3215
+ fixed ( byte * b = buffer ) SPerform ( 2153 , ( uint ) line , ( uint ) b ) ;
3216
+ if ( sz == 0 ) return "" ; // Empty last line
3217
+ if ( buffer [ sz - 1 ] == 10 ) sz -- ;
3218
+ return Encoding . GetEncoding ( this . CodePage ) . GetString ( buffer , 0 , sz ) ;
3225
3219
}
3226
3220
3227
3221
/// <summary>
You can’t perform that action at this time.
0 commit comments