user32: Add a safety check in release_user_handle_ptr.
This commit is contained in:
parent
a632052692
commit
48c8c8d7bd
|
@ -143,6 +143,7 @@ void *get_user_handle_ptr( HANDLE handle, enum user_obj_type type )
|
||||||
*/
|
*/
|
||||||
void release_user_handle_ptr( void *ptr )
|
void release_user_handle_ptr( void *ptr )
|
||||||
{
|
{
|
||||||
|
assert( ptr && ptr != OBJ_OTHER_PROCESS );
|
||||||
USER_Unlock();
|
USER_Unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue