slight fix
eric pouech
eric.pouech at wanadoo.fr
Sat Aug 4 15:42:18 CDT 2001
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/04 20:34:37 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/04 20:29:33
@@ -92,7 +92,8 @@
#define PDB32_WIN32S_PROC 0x8000 /* Win32s process */
static char **main_exe_argv;
-static char main_exe_name[MAX_PATH];
+static char main_exe_name_buffer[MAX_PATH];
+static char *main_exe_name = main_exe_name_buffer;
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;
req->exe_file = main_exe_file;
req->gui = !console_app;
SERVER_CALL();
More information about the wine-patches
mailing list