=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: wineboot: Move a function call after a possible return.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 5 10:30:26 CDT 2015


Module: wine
Branch: master
Commit: 30c5f3bd6322fd86fb20416861ceab1227a04607
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=30c5f3bd6322fd86fb20416861ceab1227a04607

Author: André Hentschel <nerv at dawncrow.de>
Date:   Sun Oct  4 21:18:32 2015 +0200

wineboot: Move a function call after a possible return.

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




More information about the wine-cvs mailing list