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)) {
|
if (!feof(inFile)) {
|
||||||
XCOPY_wprintf(XCOPY_LoadMessage(STRING_READFAIL), filename);
|
XCOPY_wprintf(XCOPY_LoadMessage(STRING_READFAIL), filename);
|
||||||
*endOfName = endChar;
|
*endOfName = endChar;
|
||||||
|
fclose(inFile);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue