mirror of
https://github.com/reactos/reactos.git
synced 2024-09-13 22:31:34 +00:00
[SYSSETUP]
* Fix some icons not appearing. The desktop one for "Command Prompt" still appears on the SYSTEM folder instead of the Default User one somehow. svn path=/branches/shell-experiments/; revision=65393
This commit is contained in:
parent
cd35aef5ab
commit
70bd9e70f3
|
@ -262,7 +262,7 @@ static BOOL CreateShortcuts(HINF hinf, LPCWSTR szSection)
|
||||||
if (!SetupGetStringFieldW(&Context, 2, szFolder, MAX_PATH, NULL))
|
if (!SetupGetStringFieldW(&Context, 2, szFolder, MAX_PATH, NULL))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!SHGetSpecialFolderPathW(0, szPath, csidl, TRUE))
|
if (FAILED(SHGetFolderPathW(NULL, csidl|CSIDL_FLAG_CREATE, (HANDLE)-1, SHGFP_TYPE_DEFAULT, szPath)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
p = PathAddBackslash(szPath);
|
p = PathAddBackslash(szPath);
|
||||||
|
@ -487,7 +487,7 @@ RegisterTypeLibraries (HINF hinf, LPCWSTR szSection)
|
||||||
hret = SHGetFolderPathW(NULL, csidl, NULL, 0, szPath);
|
hret = SHGetFolderPathW(NULL, csidl, NULL, 0, szPath);
|
||||||
if (FAILED(hret))
|
if (FAILED(hret))
|
||||||
{
|
{
|
||||||
FatalError("SHGetSpecialFolderPathW failed hret=0x%d\n", hret);
|
FatalError("SHGetFolderPathW failed hret=0x%d\n", hret);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue