as discussed on wine-devel with Bill, fixing a regression in process snapshot A+ -- Eric Pouech
Name: ws_snap ChangeLog: fixed regression in process' parent handling License: X11 GenDate: 2003/02/13 20:59:48 UTC ModifiedFiles: server/snapshot.c AddedFiles: =================================================================== RCS file: /home/cvs/cvsroot/wine/wine/server/snapshot.c,v retrieving revision 1.18 diff -u -u -r1.18 snapshot.c --- server/snapshot.c 30 Jan 2003 00:26:44 -0000 1.18 +++ server/snapshot.c 13 Feb 2003 20:27:41 -0000 @@ -124,7 +124,7 @@ ptr = &snapshot->processes[snapshot->process_pos++]; reply->count = ptr->count; reply->pid = get_process_id( ptr->process ); - reply->ppid = get_process_id( ptr->process->parent ); + reply->ppid = ptr->process->parent ? get_process_id( ptr->process->parent ) : 0; reply->heap = 0; /* FIXME */ reply->module = 0; /* FIXME */ reply->threads = ptr->threads;