[Wine-patches] [eterhack] wineboot: Do not show wait dialog, WINE на Etersoft has its own splash.

Alexander Morozov amorozov на etersoft.ru
Ср Янв 19 16:41:56 MSK 2011


----------- следующая часть -----------
From c7ad60316120e3a7891e7d9bf2544c66579b3318 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Wed, 19 Jan 2011 16:10:17 +0300
Subject: [eterhack] wineboot: Do not show wait dialog, WINE на Etersoft has its own splash.

---
 programs/wineboot/wineboot.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c
index 2c36822..a08af7e 100644
--- a/programs/wineboot/wineboot.c
+++ b/programs/wineboot/wineboot.c
@@ -880,6 +880,7 @@ static BOOL start_services_process(void)
     return TRUE;
 }
 
+#if 0
 static INT_PTR CALLBACK wait_dlgproc( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp )
 {
     switch (msg)
@@ -917,6 +918,7 @@ static HWND show_wait_window(void)
     HeapFree( GetProcessHeap(), 0, name );
     return hwnd;
 }
+#endif
 
 static HANDLE start_rundll32( const char *inf_path, BOOL wow64 )
 {
@@ -990,6 +992,7 @@ static void update_wineprefix( int force )
     if (force)
     {
         HANDLE process;
+#if 0
         DWORD count = 0;
 
         if ((process = start_rundll32( inf_path, FALSE )))
@@ -1008,6 +1011,18 @@ static void update_wineprefix( int force )
             }
             DestroyWindow( hwnd );
         }
+#else
+        if ((process = start_rundll32( inf_path, FALSE )))
+        {
+            WaitForSingleObject( process, INFINITE );
+            CloseHandle( process );
+        }
+        if ((process = start_rundll32( inf_path, TRUE )))
+        {
+            WaitForSingleObject( process, INFINITE );
+            CloseHandle( process );
+        }
+#endif
         WINE_MESSAGE( "wine: configuration in '%s' has been updated.\n", config_dir );
     }
 
-- 
1.7.3.4



Подробная информация о списке рассылки Wine-patches