mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 05:49:49 +00:00
Implemented flag FILE_FLAG_DELETE_ON_CLOSE.
This commit is contained in:
parent
9896a36168
commit
cddfcce5f3
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue