From 0341aa671df8c7c1e008d7079cb9a38e39fcfaaf Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 3 Apr 2005 12:14:30 +0000 Subject: [PATCH] protect system image list svn path=/branches/lean-explorer/; revision=14473 --- reactos/subsys/system/explorer/shell/shellbrowser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/explorer/shell/shellbrowser.cpp b/reactos/subsys/system/explorer/shell/shellbrowser.cpp index 7217ad39fb3..be08072799e 100644 --- a/reactos/subsys/system/explorer/shell/shellbrowser.cpp +++ b/reactos/subsys/system/explorer/shell/shellbrowser.cpp @@ -69,6 +69,8 @@ ShellBrowserChild::ShellBrowserChild(HWND hwnd, HWND left_hwnd, WindowHandle& ri ShellBrowserChild::~ShellBrowserChild() { + TreeView_SetImageList(_left_hwnd, 0, TVSIL_NORMAL); + if (_pShellView) _pShellView->Release(); @@ -102,7 +104,7 @@ LRESULT ShellBrowserChild::Init(HWND hWndFrame) InitDragDrop(); } - const String& root_name = GetDesktopFolder().get_name(_create_info._root_shell_path, SHGDN_FORPARSING); + const String& root_name = GetDesktopFolder().get_name(_create_info._root_shell_path, SHGDN_FORADDRESSBAR); _root._drive_type = DRIVE_UNKNOWN; lstrcpy(_root._volname, root_name);