[Fwd: slight fix] (revisited)

eric pouech eric.pouech at wanadoo.fr
Sun Aug 5 01:32:01 CDT 2001


well, last minute changes are not a good idea
this version of the patch should contain less errors

A+

-------- Original Message --------
Subject: slight fix
Date: Sat, 04 Aug 2001 22:42:18 +0200
From: eric pouech <eric.pouech at wanadoo.fr>
Reply-To: wine-devel at winehq.com
To: Wine Patches <wine-patches at winehq.com>

in the debug event for process creation, the lpImageName must 
be the address of a pointer to the image file (and not the
address of the image file)
this patch fixes it

A+
-- 
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle
-------------- next part --------------
Name: cp_evt
ChangeLog: fixed lpImageName value sent to server upon process creation
GenDate: 2001/08/05 06:25:40 UTC
ModifiedFiles: scheduler/process.c
AddedFiles: 
===================================================================
RCS file: /usr/share/cvs/cvsroot/wine/wine/scheduler/process.c,v
retrieving revision 1.159
diff -u -u -r1.159 process.c
--- scheduler/process.c	2001/07/26 20:12:55	1.159
+++ scheduler/process.c	2001/08/05 06:25:08
@@ -93,6 +93,7 @@
 
 static char **main_exe_argv;
 static char main_exe_name[MAX_PATH];
+static char *main_exe_name_ptr = main_exe_name;
 static HANDLE main_exe_file;
 
 unsigned int server_startticks;
@@ -337,7 +338,8 @@
     {
         req->module   = (void *)current_process.module;
         req->entry    = entry;
-        req->name     = main_exe_name;
+        /* API requires a double indirection */
+        req->name     = &main_exe_name_ptr;
         req->exe_file = main_exe_file;
         req->gui      = !console_app;
         SERVER_CALL();


More information about the wine-patches mailing list