[Wine-patches] [eterhack] Fix eterbug #6741.

Alexander Morozov amorozov на etersoft.ru
Ср Дек 29 21:54:15 MSK 2010


----------- следующая часть -----------
From 74e1489a52931bb0d36ede14c6f26cc19d42a71c Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Wed, 29 Dec 2010 21:52:45 +0300
Subject: [PATCH] Fix eterbug #6741.

---
 dlls/kernel32/process.c |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 09e71d8..568e1ce 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -1349,6 +1349,8 @@ void CDECL __wine_kernel_init(void)
                 ExitProcess( ERROR_BAD_EXE_FORMAT );
             }
             MESSAGE( "wine: cannot find %s\n", debugstr_w(main_exe_name) );
+            sprintf(msg, "etermsg -ea %s", debugstr_w(main_exe_name));
+            call_etermsg(msg);
             ExitProcess( ERROR_FILE_NOT_FOUND );
         }
         args[0] = (DWORD_PTR)main_exe_name;
@@ -1358,16 +1360,10 @@ void CDECL __wine_kernel_init(void)
         MESSAGE( "wine: %s", msg );
         FIXME("%d: %s(%s)\n",got_current_dir, debugstr_w(params->CurrentDirectory.DosPath.Buffer), debugstr_w(DIR_Windows));
 
-        /* Etersoft: Generate user dialog about the error */
+        if (!got_current_dir)
         {
-            CHAR cmdline[1000];
-
-            if (!got_current_dir)
-                sprintf(cmdline, "etermsg -ed");
-            else
-                sprintf(cmdline, "etermsg -ea %s", debugstr_w(main_exe_name));
-
-            call_etermsg(cmdline);
+            sprintf(msg, "etermsg -ed");
+            call_etermsg(msg);
         }
         ExitProcess( error );
     }
-- 
1.7.3.4



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