ucrtbase: Fix _iobuf struct layout.

This commit is contained in:
Piotr Caban 2024-06-11 19:25:37 +02:00 committed by Alexandre Julliard
parent 98e74c7842
commit fc8121d05f
2 changed files with 21 additions and 0 deletions

View file

@ -20,6 +20,23 @@
#ifndef __WINE_MSVCRT_H
#define __WINE_MSVCRT_H
#if _MSVCR_VER >= 140
#ifndef _FILE_DEFINED
#define _FILE_DEFINED
typedef struct _iobuf
{
char* _ptr;
char* _base;
int _cnt;
int _flag;
int _file;
int _charbuf;
int _bufsiz;
char* _tmpfname;
} FILE;
#endif
#endif
#include <errno.h>
#include <stdarg.h>
#include <stdint.h>

View file

@ -25,6 +25,9 @@ extern "C" {
#include <pshpack8.h>
typedef struct _iobuf
{
#ifdef _UCRT
void *_Placeholder;
#else
char* _ptr;
int _cnt;
char* _base;
@ -33,6 +36,7 @@ typedef struct _iobuf
int _charbuf;
int _bufsiz;
char* _tmpfname;
#endif
} FILE;
#include <poppack.h>
#endif /* _FILE_DEFINED */