Commit 61ec6c1c authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed get_event_obj/get_file_obj to use the process parameter (thanks

to Eric Pouech).
parent d083a7bd
......@@ -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 )
......
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment