<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Le 21/11/2010 22:35, Borut Razem a écrit :
<blockquote cite="mid:4CE990AA.9040809@siol.net" type="cite">Here is
second try of the patch: dynamically allocated array of process
handles indexed by fd and direct access (no linear search), as
requested by Alexandre. I performed some tests and it seems to
work correctly.
<br>
<br>
The patch I sent for review to wine-devel mailing list has a bug,
so please ignore it.
<br>
<br>
Borut
<br>
<br>
---
<br>
dlls/msvcrt/process.c | 101
++++++++++++++++++++++++++++++++++++++++++++++++-
<br>
1 files changed, 99 insertions(+), 2 deletions(-)
<br>
<br>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
</pre>
</blockquote>
one minor comment:<br>
you access file->_file after file has been closed, which can lead
to races issues<br>
you'd better copy the _file before closing the stream<br>
<br>
A+<br>
<br>
<pre class="moz-signature" cols="72">--
Eric Pouech
"The problem with designing something completely foolproof is to underestimate the ingenuity of a complete idiot." (Douglas Adams)
</pre>
</body>
</html>