Alexandre Julliard : user32: Add a safety check in release_user_handle_ptr.
Alexandre Julliard
julliard at winehq.org
Wed Feb 3 09:33:05 CST 2010
Module: wine
Branch: master
Commit: 48c8c8d7bd399a62d7c8072da2f785de54b11556
URL: http://source.winehq.org/git/wine.git/?a=commit;h=48c8c8d7bd399a62d7c8072da2f785de54b11556
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Feb 3 12:18:47 2010 +0100
user32: Add a safety check in release_user_handle_ptr.
---
dlls/user32/win.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index acf70a3..3953f09 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -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();
}
More information about the wine-cvs
mailing list