From af726215c6576ef2134150ca2c4a4f2f12d9f4eb Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Thu, 15 Sep 2011 21:04:42 -0400 Subject: [PATCH] Crash Fixes: Buffer overrun fix; Tree view deleted row fix (was trying to collapse after double-click -- added return false) --- explorer/src/ExplorerWindow.ec | 2 +- libede/src/FileSystemBox.ec | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/explorer/src/ExplorerWindow.ec b/explorer/src/ExplorerWindow.ec index 20747ee..6641431 100644 --- a/explorer/src/ExplorerWindow.ec +++ b/explorer/src/ExplorerWindow.ec @@ -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]) { diff --git a/libede/src/FileSystemBox.ec b/libede/src/FileSystemBox.ec index feebf15..aa2d304 100644 --- a/libede/src/FileSystemBox.ec +++ b/libede/src/FileSystemBox.ec @@ -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) -- 1.8.3.1