Fixed get_event_obj/get_file_obj to use the process parameter (thanks
to Eric Pouech).
This commit is contained in:
parent
d083a7bd0c
commit
61ec6c1c8d
@ -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 )
|
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 )
|
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,
|
struct file *get_file_obj( struct process *process, int handle, unsigned int access )
|
||||||
unsigned int access )
|
|
||||||
{
|
{
|
||||||
return (struct file *)get_handle_obj( current->process, handle,
|
return (struct file *)get_handle_obj( process, handle, access, &file_ops );
|
||||||
access, &file_ops );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int file_get_mmap_fd( struct file *file )
|
int file_get_mmap_fd( struct file *file )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user