mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
Fixed next_user_handle to also work on deleted handles.
This commit is contained in:
parent
2da362f5b6
commit
65adc24f14
@ -146,8 +146,9 @@ void *next_user_handle( user_handle_t *handle, enum user_object type )
|
||||
if (!*handle) entry = handles;
|
||||
else
|
||||
{
|
||||
if (!(entry = handle_to_entry( *handle ))) return NULL;
|
||||
entry++; /* start from the next one */
|
||||
int index = (*handle & 0xffff) - FIRST_USER_HANDLE;
|
||||
if (index < 0 || index >= nb_handles) return NULL;
|
||||
entry = handles + index + 1; /* start from the next one */
|
||||
}
|
||||
while (entry < handles + nb_handles)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user