wineboot: Move a function call after a possible return.

Signed-off-by: André Hentschel <nerv@dawncrow.de>
This commit is contained in:
André Hentschel 2015-10-04 21:18:32 +02:00 committed by Alexandre Julliard
parent 6f7dfe2cea
commit 30c5f3bd63
1 changed files with 2 additions and 2 deletions

View File

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