Module: wine Branch: master Commit: c3f5fc58bdf5c4280d434860ce3821916cf50957 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c3f5fc58bdf5c4280d434860ce...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Tue Mar 25 08:00:56 2014 +0400
scrrun: Fix a find handle leak (Coverity).
---
dlls/scrrun/filesystem.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/scrrun/filesystem.c b/dlls/scrrun/filesystem.c index f4c1997..33344e4 100644 --- a/dlls/scrrun/filesystem.c +++ b/dlls/scrrun/filesystem.c @@ -3335,10 +3335,9 @@ static HRESULT copy_folder(const WCHAR *source, DWORD source_len, const WCHAR *d FindClose(f); return CTL_E_FILEALREADYEXISTS; } - }else { - FindClose(f); - return create_error(GetLastError()); } + + FindClose(f); return create_error(GetLastError()); } copied = TRUE;