scrrun: Close find handle on error (Coverity).
This commit is contained in:
parent
4768ac4413
commit
293bae153d
|
@ -3189,8 +3189,10 @@ static inline HRESULT copy_file(const WCHAR *source, DWORD source_len,
|
||||||
return CTL_E_FILENOTFOUND;
|
return CTL_E_FILENOTFOUND;
|
||||||
|
|
||||||
src_len = get_parent_folder_name(source, source_len);
|
src_len = get_parent_folder_name(source, source_len);
|
||||||
if(src_len+1 >= MAX_PATH)
|
if(src_len+1 >= MAX_PATH) {
|
||||||
|
FindClose(f);
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
}
|
||||||
if(src_len) {
|
if(src_len) {
|
||||||
memcpy(src_path, source, src_len*sizeof(WCHAR));
|
memcpy(src_path, source, src_len*sizeof(WCHAR));
|
||||||
src_path[src_len++] = '\\';
|
src_path[src_len++] = '\\';
|
||||||
|
|
Loading…
Reference in New Issue