[ros-bugs] [Bug 5372] REGRESSION: Failed to create directory L"%USERPROFILE%\\Local Settings\\... in 2nd stage
ReactOS.Bugzilla at reactos.org
ReactOS.Bugzilla at reactos.org
Mon May 24 16:41:52 CEST 2010
http://www.reactos.org/bugzilla/show_bug.cgi?id=5372
--- Comment #3 from ekohl <eric.kohl at t-online.de> 2010-05-24 16:41:51 CET ---
The real culprit of this bug is wininet.dll!
When this DLL is being loaded, it calls its internal function
URLCachContainers_CreateDefaults() which calls the Shell32.dll function
SHGetSpecialFolderPathW().
In the 2nd setup stage, the system setup (setup.exe and syssetup.dll) is
running as a system process, so there is no user profile associated to the
process token. And this is the reason why SHGetSpecialFolderPathW() fails. It
reqires an existing user profile associated with the calling process.
There are two possible sollutions:
1) Don't initialize the URL cache in wininet.dll when the calling process is a
system process. For a system process it won't work anyway.
2) Switch to an on-demand initalization of the URL cache. Then, the URL cache
will only be initialized when it is needed.
--
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Ros-bugs
mailing list