Alexandre Julliard : user32: Avoid releasing a potentially null pointer.
Alexandre Julliard
julliard at winehq.org
Mon Feb 11 13:06:32 CST 2013
Module: wine
Branch: master
Commit: b7bf7f01b35c2cb3e86dbc537b98aea7d7e427d1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b7bf7f01b35c2cb3e86dbc537b98aea7d7e427d1
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Feb 11 11:45:43 2013 +0100
user32: Avoid releasing a potentially null pointer.
---
dlls/user32/win.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 645d563..db4881a 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -180,7 +180,7 @@ void *free_user_handle( HANDLE handle, enum user_obj_type type )
else InterlockedCompareExchangePointer( &user_handles[index], NULL, ptr );
}
SERVER_END_REQ;
- release_user_handle_ptr( ptr );
+ USER_Unlock();
}
return ptr;
}
@@ -290,7 +290,7 @@ static void free_window_handle( HWND hwnd )
else InterlockedCompareExchangePointer( &user_handles[index], NULL, ptr );
}
SERVER_END_REQ;
- release_user_handle_ptr( ptr );
+ USER_Unlock();
HeapFree( GetProcessHeap(), 0, ptr );
}
}
More information about the wine-cvs
mailing list