xcopy: fclose filedescriptor on eof case (Coverity).
This commit is contained in:
parent
50dc4cd636
commit
ba7b56b225
|
@ -291,6 +291,7 @@ static BOOL XCOPY_ProcessExcludeFile(WCHAR* filename, WCHAR* endOfName) {
|
|||
if (!feof(inFile)) {
|
||||
XCOPY_wprintf(XCOPY_LoadMessage(STRING_READFAIL), filename);
|
||||
*endOfName = endChar;
|
||||
fclose(inFile);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue