Frogging-Family / community-patches

A place to find patches that are maintained by the community before myself
100 stars 38 forks source link

[NonValve-Proton-Staging-tkg] `hide-prefix-update-window.mypatch` Fails to Apply #126

Open ThisNekoGuy opened 2 years ago

ThisNekoGuy commented 2 years ago

proton-tkg.cfg.txt prepare.log

Applying your own patch hide-prefix-update-window.mypatch
patching file programs/wineboot/wineboot.c
Reversed (or previously applied) patch detected!  Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file programs/wineboot/wineboot.c.rej
ThisNekoGuy commented 2 years ago

Transferred from:

IroAlexis commented 2 years ago

This should work in the meantime :frog:

diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c
index 4de20705224..f188098f946 100644
--- a/programs/wineboot/wineboot.c
+++ b/programs/wineboot/wineboot.c
@@ -1321,6 +1321,7 @@ static INT_PTR CALLBACK wait_dlgproc( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp
     return 0;
 }

+/*
 static HWND show_wait_window(void)
 {
     HWND hwnd = CreateDialogParamW( GetModuleHandleW(0), MAKEINTRESOURCEW(IDD_WAITDLG), 0,
@@ -1328,6 +1329,7 @@ static HWND show_wait_window(void)
     ShowWindow( hwnd, SW_SHOWNORMAL );
     return hwnd;
 }
+*/

 static HANDLE start_rundll32( const WCHAR *inf_path, const WCHAR *install, WORD machine )
 {
@@ -1479,7 +1481,7 @@ 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 = show_wait_window();*/
             for (;;)
             {
                 MSG msg;
@@ -1497,7 +1499,7 @@ static void update_wineprefix( BOOL force )
                 }
                 else while (PeekMessageW( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageW( &msg );
             }
-            DestroyWindow( hwnd );
+/*            DestroyWindow( hwnd );*/
         }
         install_root_pnp_devices();