kernel32: Fetch the system information only once the memory limits are correct.
This commit is contained in:
parent
cd03a51e7d
commit
9181b7e876
|
@ -83,6 +83,8 @@ static BOOL process_attach( HMODULE module )
|
|||
{
|
||||
RTL_USER_PROCESS_PARAMETERS *params = NtCurrentTeb()->Peb->ProcessParameters;
|
||||
|
||||
NtQuerySystemInformation( SystemBasicInformation, &system_info, sizeof(system_info), NULL );
|
||||
|
||||
/* Setup registry locale information */
|
||||
LOCALE_InitRegistry();
|
||||
|
||||
|
|
|
@ -1147,7 +1147,6 @@ void CDECL __wine_kernel_init(void)
|
|||
setbuf(stderr,NULL);
|
||||
kernel32_handle = GetModuleHandleW(kernel32W);
|
||||
IsWow64Process( GetCurrentProcess(), &is_wow64 );
|
||||
NtQuerySystemInformation( SystemBasicInformation, &system_info, sizeof(system_info), NULL );
|
||||
|
||||
LOCALE_Init();
|
||||
|
||||
|
|
Loading…
Reference in New Issue