protect system image list

svn path=/branches/lean-explorer/; revision=14473
This commit is contained in:
Martin Fuchs 2005-04-03 12:14:30 +00:00
parent 89e885955c
commit 0341aa671d

View file

@ -69,6 +69,8 @@ ShellBrowserChild::ShellBrowserChild(HWND hwnd, HWND left_hwnd, WindowHandle& ri
ShellBrowserChild::~ShellBrowserChild() ShellBrowserChild::~ShellBrowserChild()
{ {
TreeView_SetImageList(_left_hwnd, 0, TVSIL_NORMAL);
if (_pShellView) if (_pShellView)
_pShellView->Release(); _pShellView->Release();
@ -102,7 +104,7 @@ LRESULT ShellBrowserChild::Init(HWND hWndFrame)
InitDragDrop(); 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; _root._drive_type = DRIVE_UNKNOWN;
lstrcpy(_root._volname, root_name); lstrcpy(_root._volname, root_name);