Crash Fixes: Buffer overrun fix; Tree view deleted row fix (was trying to collapse...
authorJerome St-Louis <jerome@ecere.com>
Fri, 16 Sep 2011 01:04:42 +0000 (21:04 -0400)
committerJerome St-Louis <jerome@ecere.com>
Fri, 16 Sep 2011 01:04:42 +0000 (21:04 -0400)
explorer/src/ExplorerWindow.ec
libede/src/FileSystemBox.ec

index 20747ee..6641431 100644 (file)
@@ -135,7 +135,7 @@ class ExplorerWindow : Window
             case goUp:
             {
                char * path = view.path;
-               char * newPath = new char[strlen(path)];
+               char * newPath = new char[strlen(path)+1];
                StripLastDirectory(path, newPath);
                if(!newPath[0])
                {
index feebf15..aa2d304 100644 (file)
@@ -413,7 +413,8 @@ private:
 
       bool NotifyDoubleClick(ListBox listBox, int x, int y, Modifiers mods)
       {
-         return OpenNode();
+         OpenNode();
+         return false;
       }
 
       bool NotifyKeyDown(ListBox listBox, DataRow row, Key key, unichar ch)