user32: Add a safety check in release_user_handle_ptr.

This commit is contained in:
Alexandre Julliard 2010-02-03 12:18:47 +01:00
parent a632052692
commit 48c8c8d7bd
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ void *get_user_handle_ptr( HANDLE handle, enum user_obj_type type )
*/
void release_user_handle_ptr( void *ptr )
{
assert( ptr && ptr != OBJ_OTHER_PROCESS );
USER_Unlock();
}