Paul Gofman (@gofman) commented about server/process.c:
- struct list *ptr;
- if (req->flags > 1)
- {
set_error( STATUS_INVALID_PARAMETER );
return;
- }
- if (!req->last)
- {
ptr = req->flags ? list_tail( &process_list ) : list_head( &process_list );
- }
- else
- {
if (!(process = get_process_from_id( req->last )))
return;
This doesn't look right, you probably want get_process_from_handle().