Module: wine Branch: refs/heads/master Commit: a21f9e5587b2fda8b2e458b5911a32f361e106c7 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a21f9e5587b2fda8b2e458b5...
Author: Mike McCormack mike@codeweavers.com Date: Sun Jun 11 09:51:42 2006 +0900
msi: Freeing the zero handle always succeeds.
---
dlls/msi/handle.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/handle.c b/dlls/msi/handle.c index ae951be..1cd82b3 100644 --- a/dlls/msi/handle.c +++ b/dlls/msi/handle.c @@ -188,6 +188,9 @@ UINT WINAPI MsiCloseHandle(MSIHANDLE han
TRACE("%lx\n",handle);
+ if (!handle) + return ERROR_SUCCESS; + EnterCriticalSection( &MSI_handle_cs );
info = msihandle2msiinfo(handle, 0);