Implemented flag FILE_FLAG_DELETE_ON_CLOSE.

This commit is contained in:
Juergen Schmied 1999-02-14 11:20:07 +00:00 committed by Alexandre Julliard
parent 9896a36168
commit cddfcce5f3
1 changed files with 1 additions and 0 deletions

View File

@ -314,6 +314,7 @@ static void file_destroy( struct object *obj )
while (*pptr && *pptr != file) pptr = &(*pptr)->next;
assert( *pptr );
*pptr = (*pptr)->next;
if (file->flags & FILE_FLAG_DELETE_ON_CLOSE) unlink( file->name );
free( file->name );
}
close( file->fd );