mirror of
https://github.com/reactos/wine.git
synced 2024-12-01 07:30:37 +00:00
msvcrt: Use fd critical section in msvcrt_create_io_inherit_block.
This commit is contained in:
parent
86baccc9ae
commit
9ce2a8a60c
@ -498,7 +498,7 @@ unsigned msvcrt_create_io_inherit_block(WORD *size, BYTE **block)
|
||||
for (fd = 0; fd < MSVCRT_fdend; fd++)
|
||||
{
|
||||
/* to be inherited, we need it to be open, and that DONTINHERIT isn't set */
|
||||
fdinfo = get_ioinfo_nolock(fd);
|
||||
fdinfo = get_ioinfo(fd);
|
||||
if ((fdinfo->wxflag & (WX_OPEN | WX_DONTINHERIT)) == WX_OPEN)
|
||||
{
|
||||
*wxflag_ptr = fdinfo->wxflag;
|
||||
@ -509,6 +509,7 @@ unsigned msvcrt_create_io_inherit_block(WORD *size, BYTE **block)
|
||||
*wxflag_ptr = 0;
|
||||
*handle_ptr = INVALID_HANDLE_VALUE;
|
||||
}
|
||||
release_ioinfo(fdinfo);
|
||||
wxflag_ptr++; handle_ptr++;
|
||||
}
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user