mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:13:56 +00:00
explorer: Create non-existent folders when initializing launchers.
This commit is contained in:
parent
ceb81eee20
commit
c8d1d4aadc
1 changed files with 2 additions and 2 deletions
|
@ -444,13 +444,13 @@ static void initialize_launchers( HWND hwnd )
|
||||||
desktop_width = GetSystemMetrics( SM_CXSCREEN );
|
desktop_width = GetSystemMetrics( SM_CXSCREEN );
|
||||||
launchers_per_row = desktop_width / launcher_size;
|
launchers_per_row = desktop_width / launcher_size;
|
||||||
|
|
||||||
hr = SHGetKnownFolderPath( &FOLDERID_Desktop, 0, NULL, &desktop_folder );
|
hr = SHGetKnownFolderPath( &FOLDERID_Desktop, KF_FLAG_CREATE, NULL, &desktop_folder );
|
||||||
if (FAILED( hr ))
|
if (FAILED( hr ))
|
||||||
{
|
{
|
||||||
WINE_ERR("Could not get user desktop folder\n");
|
WINE_ERR("Could not get user desktop folder\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
hr = SHGetKnownFolderPath( &FOLDERID_PublicDesktop, 0, NULL, &desktop_folder_public );
|
hr = SHGetKnownFolderPath( &FOLDERID_PublicDesktop, KF_FLAG_CREATE, NULL, &desktop_folder_public );
|
||||||
if (FAILED( hr ))
|
if (FAILED( hr ))
|
||||||
{
|
{
|
||||||
WINE_ERR("Could not get public desktop folder\n");
|
WINE_ERR("Could not get public desktop folder\n");
|
||||||
|
|
Loading…
Reference in a new issue