kernel32: fix use-after-close in create_process

Dan Kegel dank at
Tue Sep 21 07:36:09 CDT 2010

On Tue, Sep 21, 2010 at 5:30 AM, Dmitry Timoshkov
<dmitry at> wrote:
> Dan Kegel <dank at> wrote:
>> Spotted by Guillaume ORTEGA.  He reports this fixes
>> Passes kernel32 tests.
> That's not a use after close, client's fd passed in the server call is used
> just as an association of the server side.

Guillaume claims in
that wine_server_send_fd() returns before the fd is
actually sent, and delaying the close until after the
server call fixes the race.

More information about the wine-devel mailing list