From: Isaac Marovitz isaacryu@icloud.com
Fix oopsie
Check if null --- programs/wineboot/wineboot.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c index c05ce580298..0dbff34a8f4 100644 --- a/programs/wineboot/wineboot.c +++ b/programs/wineboot/wineboot.c @@ -1495,7 +1495,11 @@ static void update_wineprefix( BOOL force )
if ((process = start_rundll32( inf_path, L"PreInstall", IMAGE_FILE_MACHINE_TARGET_HOST ))) { - HWND hwnd = show_wait_window(); + HWND hwnd; + WCHAR *hide = _wgetenv( L"WINEHIDEWAIT" ); + if (hide == NULL) { + hwnd = show_wait_window(); + } for (;;) { MSG msg; @@ -1513,7 +1517,9 @@ static void update_wineprefix( BOOL force ) } else while (PeekMessageW( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageW( &msg ); } - DestroyWindow( hwnd ); + if (hide == NULL) { + DestroyWindow(hwnd); + } } install_root_pnp_devices(); update_user_profile();