From cf3fb86313a458004248647cbb2f3598be1cfd1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Tue, 21 Feb 2012 23:19:47 +0000 Subject: [PATCH] [CRT] - fix array size to match what implementation expects. Found by Thomas Faber. See issue 6903 for details. svn path=/trunk/; revision=55800 --- reactos/lib/sdk/crt/stdio/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/sdk/crt/stdio/file.c b/reactos/lib/sdk/crt/stdio/file.c index 6af8a55675b..c00a459f3f1 100644 --- a/reactos/lib/sdk/crt/stdio/file.c +++ b/reactos/lib/sdk/crt/stdio/file.c @@ -112,8 +112,8 @@ typedef struct { CRITICAL_SECTION crit; } file_crit; -FILE _iob[3] = { { 0 } }; -static file_crit* fstream[MAX_FILES/FD_BLOCK_SIZE]; +FILE _iob[_IOB_ENTRIES] = { { 0 } }; +static file_crit* fstream[MAX_FILES/FD_BLOCK_SIZE] = { NULL }; static int max_streams = 512, stream_idx; /* INTERNAL: process umask */