scrrun: Fix a find handle leak (Coverity).

This commit is contained in:
Nikolay Sivov 2014-03-25 08:00:56 +04:00 committed by Alexandre Julliard
parent 293bae153d
commit c3f5fc58bd
1 changed files with 2 additions and 3 deletions

View File

@ -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;