dlls/msvcrt: msvcrt-popen-1.1

Joerg Mayer jmayer at loplof.de
Fri Nov 1 09:29:49 CST 2002


On Fri, Nov 01, 2002 at 03:16:58PM +0200, Jaco Greeff wrote:
> +/* FIXME: Don't know what this value should be, 10 seems enough as
> + * the maximum number of simultaneous _popen'ed processes
> + */
>   #define POPEN_MAX_FILES     10
...
> +INT POPEN_getOpenFileSlotPos(VOID)
> +{
> +    INT i = 0;
> +    for (i = 0; i < POPEN_MAX_FILES; i++)
> +    {
> +        if (!POPEN_Files[i].fProcess)
> +        {
> +            POPEN_Files[i].fProcess = (MSVCRT_FILE *)POPEN_FILE_IN_USE;
> +            return i;
> +        }
> +    }
Please output an ERR here to ask people to report that POPEN_MAX_FILES
needs to be increased.
> +    return -1;



More information about the wine-devel mailing list