mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
create quicklaunch dir it it does not already exist
svn path=/trunk/; revision=7505
This commit is contained in:
parent
f6f1650b2b
commit
18f935cbb8
4 changed files with 4 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
<tr>
|
||||
<td><address style="align: right;"><small>
|
||||
ROS Explorer Source Code Documentation
|
||||
<br>generated on 04.01.2004 by <a href="http://www.doxygen.org/index.html">
|
||||
<br>generated on 06.01.2004 by <a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
|
||||
</small></address>
|
||||
</td>
|
||||
|
|
|
@ -112,7 +112,7 @@ void ShellBrowserChild::InitializeTree()
|
|||
TreeView_SetImageList(_left_hwnd, _himlSmall, TVSIL_NORMAL);
|
||||
TreeView_SetScrollTime(_left_hwnd, 100);
|
||||
|
||||
const String& root_name = Desktop().get_name(_create_info._root_shell_path);
|
||||
const String& root_name = Desktop().get_name(_create_info._root_shell_path, SHGDN_FORPARSING);
|
||||
|
||||
_root._drive_type = DRIVE_UNKNOWN;
|
||||
lstrcpy(_root._volname, root_name); // most of the time "Desktop"
|
||||
|
|
|
@ -57,7 +57,7 @@ struct ShellDirectory : public ShellEntry, public Directory
|
|||
{
|
||||
CONTEXT("ShellDirectory::ShellDirectory()");
|
||||
|
||||
lstrcpy(_data.cFileName, root_folder.get_name(shell_path));
|
||||
lstrcpy(_data.cFileName, root_folder.get_name(shell_path, SHGDN_FORPARSING));
|
||||
_data.dwFileAttributes = FILE_ATTRIBUTE_DIRECTORY;
|
||||
_shell_attribs = SFGAO_FOLDER;
|
||||
|
||||
|
|
|
@ -101,6 +101,7 @@ void QuickLaunchBar::AddShortcuts()
|
|||
|
||||
_stprintf(path, TEXT("%s\\")QUICKLAUNCH_FOLDER, (LPCTSTR)app_data);
|
||||
|
||||
CreateDirectory(path, NULL);
|
||||
_dir = new ShellDirectory(Desktop(), path, _hwnd);
|
||||
|
||||
_dir->smart_scan(SCAN_EXTRACT_ICONS|SCAN_FILESYSTEM);
|
||||
|
|
Loading…
Reference in a new issue