Fixed get_event_obj/get_file_obj to use the process parameter (thanks

to Eric Pouech).
This commit is contained in:
Alexandre Julliard 1999-11-29 02:17:08 +00:00
parent d083a7bd0c
commit 61ec6c1c8d
2 changed files with 3 additions and 5 deletions

View File

@ -61,7 +61,7 @@ static struct event *create_event( const WCHAR *name, size_t len,
struct event *get_event_obj( struct process *process, int handle, unsigned int access )
{
return (struct event *)get_handle_obj( current->process, handle, access, &event_ops );
return (struct event *)get_handle_obj( process, handle, access, &event_ops );
}
void pulse_event( struct event *event )

View File

@ -371,11 +371,9 @@ void file_set_error(void)
}
}
struct file *get_file_obj( struct process *process, int handle,
unsigned int access )
struct file *get_file_obj( struct process *process, int handle, unsigned int access )
{
return (struct file *)get_handle_obj( current->process, handle,
access, &file_ops );
return (struct file *)get_handle_obj( process, handle, access, &file_ops );
}
int file_get_mmap_fd( struct file *file )