mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +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:
parent
8dd7ee7eb4
commit
8005202506
2 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue