* pinfo.cc (pinfo::exit): Don't access self after releasing it.
* path.h (path_conv::path_conv): Fill path with native device name in case of device argument.
This commit is contained in:
@@ -140,13 +140,14 @@ pinfo::exit (DWORD n)
|
||||
set_exit_state (PID_EXITED);
|
||||
if (n != EXITCODE_EXEC)
|
||||
self->alert_parent (0);
|
||||
int exitcode = self->exitcode;
|
||||
release ();
|
||||
|
||||
_my_tls.stacklock = 0;
|
||||
_my_tls.stackptr = _my_tls.stack;
|
||||
sigproc_printf ("Calling ExitProcess hProcess %p, n %p, exitcode %p",
|
||||
hProcess, n, self->exitcode);
|
||||
ExitProcess (self->exitcode);
|
||||
hProcess, n, exitcode);
|
||||
ExitProcess (exitcode);
|
||||
}
|
||||
# undef self
|
||||
|
||||
|
Reference in New Issue
Block a user