Author: dquintana
Date: Thu Nov 13 17:11:07 2014
New Revision: 65394
URL:
http://svn.reactos.org/svn/reactos?rev=65394&view=rev
Log:
[SYSSETUP]
* Use the right function for the fix.
Modified:
branches/shell-experiments/dll/win32/syssetup/install.c
Modified: branches/shell-experiments/dll/win32/syssetup/install.c
URL:
http://svn.reactos.org/svn/reactos/branches/shell-experiments/dll/win32/sys…
==============================================================================
--- branches/shell-experiments/dll/win32/syssetup/install.c [iso-8859-1] (original)
+++ branches/shell-experiments/dll/win32/syssetup/install.c [iso-8859-1] Thu Nov 13
17:11:07 2014
@@ -241,7 +241,6 @@
WCHAR szFolder[MAX_PATH];
WCHAR szFolderSection[MAX_PATH];
INT csidl;
- LPWSTR p;
CoInitialize(NULL);
@@ -262,19 +261,8 @@
if (!SetupGetStringFieldW(&Context, 2, szFolder, MAX_PATH, NULL))
continue;
- if (FAILED(SHGetFolderPathW(NULL, csidl|CSIDL_FLAG_CREATE, (HANDLE)-1,
SHGFP_TYPE_DEFAULT, szPath)))
- continue;
-
- p = PathAddBackslash(szPath);
- _tcscpy(p, szFolder);
-
- if (!CreateDirectory(szPath, NULL))
- {
- if (GetLastError() != ERROR_ALREADY_EXISTS)
- {
- continue;
- }
- }
+ if (FAILED(SHGetFolderPathAndSubDirW(NULL, csidl|CSIDL_FLAG_CREATE, (HANDLE)-1,
SHGFP_TYPE_DEFAULT, szFolder, szPath)))
+ continue;
CreateShortcutsFromSection(hinf, szFolderSection, szPath);