Commit cddfcce5 authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard

Implemented flag FILE_FLAG_DELETE_ON_CLOSE.

parent 9896a361
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment