Commit 48c8c8d7 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Add a safety check in release_user_handle_ptr.

parent a6320526
...@@ -143,6 +143,7 @@ void *get_user_handle_ptr( HANDLE handle, enum user_obj_type type ) ...@@ -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();
} }
......
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