Changeset 57661 in vbox
- Timestamp:
- Sep 9, 2015 11:42:26 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 102563
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp
r57660 r57661 1989 1989 } 1990 1990 } 1991 1992 #ifdef RT_OS_WINDOWS 1993 if (RT_SUCCESS(rc)) 1994 { 1995 /* 1996 * On Windows, when VBoxService was started as local service via SCM, the environment variable 1997 * USERPROFILE was set to point to LocalService's user directory. 1998 * 1999 * As we want to make sure that USERPROFILE actually points to the directory of the user we want 2000 * to spawn the guest process for, unset the variable here before handing the environment block over 2001 * to RTProcCreateEx(). 2002 * 2003 * Note: RTProcCreateEx() in turn will *not* overwrite _any_ of already set 2004 * environment variables by default! */ 2005 RTEnvUnsetEx(hEnv, "USERPROFILE"); 2006 } 2007 #endif 1991 2008 } 1992 2009
Note:
See TracChangeset
for help on using the changeset viewer.