From 190c67c70e0cd3700c04d9c2c42f1389bbd2e691 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Thu, 6 Oct 2011 20:13:16 +0200 Subject: [PATCH] msvcrt: Fix __pioinfo block size. --- dlls/msvcrt/file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c index f1af1b7abda..ecbec34aa40 100644 --- a/dlls/msvcrt/file.c +++ b/dlls/msvcrt/file.c @@ -69,7 +69,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt); /* FIXME: this should be allocated dynamically */ #define MSVCRT_MAX_FILES 2048 -#define MSVCRT_FD_BLOCK_SIZE 64 +#define MSVCRT_FD_BLOCK_SIZE 32 /* ioinfo structure size is different in msvcrXX.dll's */ typedef struct { @@ -82,7 +82,7 @@ typedef struct { /********************************************************************* * __pioinfo (MSVCRT.@) - * array of pointers to ioinfo arrays [64] + * array of pointers to ioinfo arrays [32] */ ioinfo * MSVCRT___pioinfo[MSVCRT_MAX_FILES/MSVCRT_FD_BLOCK_SIZE] = { 0 }; @@ -229,7 +229,7 @@ static HANDLE msvcrt_fdtoh(int fd) return INVALID_HANDLE_VALUE; } if (msvcrt_get_ioinfo(fd)->handle == INVALID_HANDLE_VALUE) - FIXME("returning INVALID_HANDLE_VALUE for %d\n", fd); + WARN("returning INVALID_HANDLE_VALUE for %d\n", fd); return msvcrt_get_ioinfo(fd)->handle; }