mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- 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:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user