Module: wine Branch: master Commit: 190c67c70e0cd3700c04d9c2c42f1389bbd2e691 URL: http://source.winehq.org/git/wine.git/?a=commit;h=190c67c70e0cd3700c04d9c2c4...
Author: Piotr Caban piotr@codeweavers.com Date: Thu Oct 6 20:13:16 2011 +0200
msvcrt: Fix __pioinfo block size.
---
dlls/msvcrt/file.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c index f1af1b7..ecbec34 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; }