Close the file before the _WIN32 switch
This commit is contained in:
parent
ce105dcf09
commit
f7e7554c95
|
@ -1077,11 +1077,12 @@ int tidyDocParseFile( TidyDocImpl* doc, ctmbstr filnam )
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fclose( fin );
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return TY_(DocParseFileWithMappedFile)( doc, filnam );
|
return TY_(DocParseFileWithMappedFile)( doc, filnam );
|
||||||
#else
|
#else
|
||||||
|
|
||||||
fclose( fin );
|
|
||||||
fin = fopen( filnam, "rb" );
|
fin = fopen( filnam, "rb" );
|
||||||
|
|
||||||
#if PRESERVE_FILE_TIMES
|
#if PRESERVE_FILE_TIMES
|
||||||
|
|
Loading…
Reference in a new issue