mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:28:19 +00:00
server: Remove casts to the type of the casted expression.
This commit is contained in:
parent
ceb7add45d
commit
835171c2e0
|
@ -267,7 +267,7 @@ static obj_handle_t alloc_global_handle_no_access_check( void *obj, unsigned int
|
||||||
{
|
{
|
||||||
if (!global_table)
|
if (!global_table)
|
||||||
{
|
{
|
||||||
if (!(global_table = (struct handle_table *)alloc_handle_table( NULL, 0 )))
|
if (!(global_table = alloc_handle_table( NULL, 0 )))
|
||||||
return 0;
|
return 0;
|
||||||
make_object_static( &global_table->obj );
|
make_object_static( &global_table->obj );
|
||||||
}
|
}
|
||||||
|
@ -336,7 +336,7 @@ struct handle_table *copy_handle_table( struct process *process, struct process
|
||||||
assert( parent_table );
|
assert( parent_table );
|
||||||
assert( parent_table->obj.ops == &handle_table_ops );
|
assert( parent_table->obj.ops == &handle_table_ops );
|
||||||
|
|
||||||
if (!(table = (struct handle_table *)alloc_handle_table( process, parent_table->count )))
|
if (!(table = alloc_handle_table( process, parent_table->count )))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if ((table->last = parent_table->last) >= 0)
|
if ((table->last = parent_table->last) >= 0)
|
||||||
|
|
Loading…
Reference in a new issue