xcopy: fclose filedescriptor on eof case (Coverity).

This commit is contained in:
Marcus Meissner 2013-07-15 21:33:32 +02:00 committed by Alexandre Julliard
parent 50dc4cd636
commit ba7b56b225
1 changed files with 1 additions and 0 deletions

View File

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