* pinfo.cc (pinfo::exit): Only return low-order 16 bits when exiting.

This commit is contained in:
Christopher Faylor 2005-01-31 14:34:07 +00:00
parent 6d336c0e5a
commit ad1d82b851
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-01-31 Christopher Faylor <cgf@timesys.com>
* pinfo.cc (pinfo::exit): Only return low-order 16 bits when exiting.
2005-01-31 Corinna Vinschen <corinna@vinschen.de>
* fhandler_process.cc (format_process_maps): Get destbuf argument by

View File

@ -159,7 +159,7 @@ pinfo::exit (DWORD n)
_my_tls.stackptr = _my_tls.stack;
sigproc_printf ("Calling ExitProcess hProcess %p, n %p, exitcode %p",
hProcess, n, exitcode);
ExitProcess (exitcode);
ExitProcess (exitcode & 0xffff);
}
# undef self