- initialize a user profile before loading syssetup.dll.

- this makes it possible to install ros over an existing ros.

svn path=/trunk/; revision=15089
This commit is contained in:
Hartmut Birr 2005-05-07 20:20:46 +00:00
parent 8dd7ee7eb4
commit 8005202506
2 changed files with 5 additions and 1 deletions

View file

@ -10,7 +10,7 @@ TARGET_NAME = setup
TARGET_INSTALLDIR = system32
TARGET_SDKLIBS = kernel32.a
TARGET_SDKLIBS = kernel32.a userenv.a ntdll.a
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API -D_WIN32_IE=0x0400

View file

@ -27,6 +27,7 @@
#include <windows.h>
#include <tchar.h>
#include <syssetup.h>
#include <userenv.h>
#define NDEBUG
#include <debug.h>
@ -59,6 +60,9 @@ RunNewSetup (HINSTANCE hInstance)
HMODULE hDll;
PINSTALL_REACTOS InstallReactOS;
/* some dlls (loaded by syssetup) need a valid user profile */
InitializeProfiles();
hDll = LoadLibrary (TEXT("syssetup"));
if (hDll == NULL)
{