From a5d8d20855c20a7bae80348764446c2907b654c4 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Sun, 27 Aug 2006 20:01:14 +0000 Subject: [PATCH] * improve error checking (by hpoussin) * use correct CLSID -> now auto-start apps from %ALLUSERSPROFILE% can be started too svn path=/trunk/; revision=23753 --- reactos/base/system/userinit/userinit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/base/system/userinit/userinit.c b/reactos/base/system/userinit/userinit.c index 32c6567d613..135dba92332 100644 --- a/reactos/base/system/userinit/userinit.c +++ b/reactos/base/system/userinit/userinit.c @@ -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);