wineboot: Move a function call after a possible return

André Hentschel nerv at dawncrow.de
Sun Oct 4 14:18:32 CDT 2015


Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
 programs/wineboot/wineboot.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c
index 4d70ea9..cf0c741 100644
--- a/programs/wineboot/wineboot.c
+++ b/programs/wineboot/wineboot.c
@@ -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 );
 
-- 
1.9.1




More information about the wine-patches mailing list