kernel32: Fetch the system information only once the memory limits are correct.

This commit is contained in:
Alexandre Julliard 2013-04-04 13:01:04 +02:00
parent cd03a51e7d
commit 9181b7e876
2 changed files with 2 additions and 1 deletions

View File

@ -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();

View File

@ -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();