mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
* improve error checking (by hpoussin)
* use correct CLSID -> now auto-start apps from %ALLUSERSPROFILE% can be started too svn path=/trunk/; revision=23753
This commit is contained in:
parent
fbfe8c9245
commit
a5d8d20855
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ StartAutoApplications(int clsid)
|
|||
|
||||
hResult = SHGetFolderPathW(NULL, clsid, NULL, SHGFP_TYPE_CURRENT, szPath);
|
||||
len = wcslen(szPath);
|
||||
if (hResult == E_FAIL || hResult == E_INVALIDARG || len == 0)
|
||||
if (!SUCCEEDED(hResult) || len == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ void StartShell(void)
|
|||
&pi))
|
||||
{
|
||||
StartAutoApplications(CSIDL_STARTUP);
|
||||
StartAutoApplications(CSIDL_ALTSTARTUP);
|
||||
StartAutoApplications(CSIDL_COMMON_STARTUP);
|
||||
WaitForSingleObject(pi.hProcess, INFINITE);
|
||||
CloseHandle(pi.hProcess);
|
||||
CloseHandle(pi.hThread);
|
||||
|
|
Loading…
Reference in a new issue