mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 05:54:05 +00:00
[0.4.9][CRT] Do Not lock ioinfo when spawning functions (#4099) CORE-15176
This fixes CORE-15176 'Gimp 2.6.11 hangs when opening a file'. It regressed by 0.4.9-dev-446-gbffd8201d0
Fix picked from 0.4.15-dev-3363-g252a7530d0
This commit is contained in:
parent
614334a8a1
commit
b6f78a26cf
|
@ -434,7 +434,7 @@ unsigned create_io_inherit_block(WORD *size, BYTE **block)
|
||||||
for (fd = 0; fd < last_fd; fd++)
|
for (fd = 0; fd < last_fd; fd++)
|
||||||
{
|
{
|
||||||
/* to be inherited, we need it to be open, and that DONTINHERIT isn't set */
|
/* to be inherited, we need it to be open, and that DONTINHERIT isn't set */
|
||||||
fdinfo = get_ioinfo(fd);
|
fdinfo = get_ioinfo_nolock(fd);
|
||||||
if ((fdinfo->wxflag & (WX_OPEN | WX_DONTINHERIT)) == WX_OPEN)
|
if ((fdinfo->wxflag & (WX_OPEN | WX_DONTINHERIT)) == WX_OPEN)
|
||||||
{
|
{
|
||||||
*wxflag_ptr = fdinfo->wxflag;
|
*wxflag_ptr = fdinfo->wxflag;
|
||||||
|
@ -445,7 +445,6 @@ unsigned create_io_inherit_block(WORD *size, BYTE **block)
|
||||||
*wxflag_ptr = 0;
|
*wxflag_ptr = 0;
|
||||||
*handle_ptr = INVALID_HANDLE_VALUE;
|
*handle_ptr = INVALID_HANDLE_VALUE;
|
||||||
}
|
}
|
||||||
release_ioinfo(fdinfo);
|
|
||||||
wxflag_ptr++; handle_ptr++;
|
wxflag_ptr++; handle_ptr++;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue