[CRT] Apply Wine commit 190c67c by Piotr Caban: Fix __pioinfo block size. CORE-11866
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 8 Sep 2016 10:56:41 +0000 (10:56 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 8 Sep 2016 10:56:41 +0000 (10:56 +0000)
svn path=/trunk/; revision=72621

reactos/sdk/lib/crt/stdio/file.c

index b946b1e..b13176b 100644 (file)
@@ -108,7 +108,7 @@ static char utf16_bom[2] = { 0xff, 0xfe };
 
 /* FIXME: this should be allocated dynamically */
 #define MSVCRT_MAX_FILES 2048
 
 /* FIXME: this should be allocated dynamically */
 #define MSVCRT_MAX_FILES 2048
-#define MSVCRT_FD_BLOCK_SIZE 64
+#define MSVCRT_FD_BLOCK_SIZE 32
 
 #define MSVCRT_INTERNAL_BUFSIZ 4096
 
 
 #define MSVCRT_INTERNAL_BUFSIZ 4096
 
@@ -123,7 +123,7 @@ typedef struct {
 
 /*********************************************************************
  *             __pioinfo (MSVCRT.@)
 
 /*********************************************************************
  *             __pioinfo (MSVCRT.@)
- * array of pointers to ioinfo arrays [64]
+ * array of pointers to ioinfo arrays [32]
  */
 ioinfo * __pioinfo[MSVCRT_MAX_FILES/MSVCRT_FD_BLOCK_SIZE] = { 0 };
 
  */
 ioinfo * __pioinfo[MSVCRT_MAX_FILES/MSVCRT_FD_BLOCK_SIZE] = { 0 };