wineboot: Move a function call after a possible return.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
This commit is contained in:
parent
6f7dfe2cea
commit
30c5f3bd63
|
@ -321,10 +321,10 @@ static void create_environment_registry_keys( void )
|
|||
WCHAR buffer[60];
|
||||
const WCHAR *arch;
|
||||
|
||||
NtQuerySystemInformation( SystemCpuInformation, &sci, sizeof(sci), NULL );
|
||||
|
||||
if (RegCreateKeyW( HKEY_LOCAL_MACHINE, EnvironW, &env_key )) return;
|
||||
|
||||
NtQuerySystemInformation( SystemCpuInformation, &sci, sizeof(sci), NULL );
|
||||
|
||||
sprintfW( buffer, PercentDW, NtCurrentTeb()->Peb->NumberOfProcessors );
|
||||
set_reg_value( env_key, NumProcW, buffer );
|
||||
|
||||
|
|
Loading…
Reference in New Issue