André Hentschel : wineboot: Move a function call after a possible return.
Module: wine Branch: master Commit: 30c5f3bd6322fd86fb20416861ceab1227a04607 URL: http://source.winehq.org/git/wine.git/?a=commit;h=30c5f3bd6322fd86fb20416861... Author: André Hentschel <nerv(a)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(a)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 );
participants (1)
-
Alexandre Julliard