Author: janderwald
Date: Mon Aug 28 00:01:14 2006
New Revision: 23753
URL:
http://svn.reactos.org/svn/reactos?rev=23753&view=rev
Log:
* improve error checking (by hpoussin)
* use correct CLSID -> now auto-start apps from %ALLUSERSPROFILE% can be started too
Modified:
trunk/reactos/base/system/userinit/userinit.c
Modified: trunk/reactos/base/system/userinit/userinit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/userinit/useri…
==============================================================================
--- trunk/reactos/base/system/userinit/userinit.c (original)
+++ trunk/reactos/base/system/userinit/userinit.c Mon Aug 28 00:01:14 2006
@@ -171,7 +171,7 @@
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 @@
&pi))
{
StartAutoApplications(CSIDL_STARTUP);
- StartAutoApplications(CSIDL_ALTSTARTUP);
+ StartAutoApplications(CSIDL_COMMON_STARTUP);
WaitForSingleObject(pi.hProcess, INFINITE);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);