Commit bcc2a5c5 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

- rewrote the file code so that streams manage low level file desc

(the code was written the other way around) - reworked the flag handling code (now the stream._flag is closer to what MS does) - simplified temp files handling by using FILE_FLAG_DELETE_ON_CLOSE in CreateFile - fixed a couple of bugs
parent 4b2a99b4
......@@ -24,6 +24,7 @@
#include <math.h>
#include "msvcrt.h"
#include "msvcrt/fcntl.h"
#include "msvcrt/stdlib.h"
#include "msvcrt/string.h"
......@@ -285,7 +286,8 @@ void msvcrt_init_args(void)
MSVCRT___setlc_active = 0;
MSVCRT___unguarded_readlc_active = 0;
MSVCRT_timezone = 0;
MSVCRT__fmode = _O_TEXT;
MSVCRT___initenv= msvcrt_SnapshotOfEnvironmentA(NULL);
MSVCRT___winitenv= msvcrt_SnapshotOfEnvironmentW(NULL);
......
......@@ -32,7 +32,6 @@
#define _IOERR 0x0020
#define _IOSTRG 0x0040
#define _IORW 0x0080
#define _IOAPPEND 0x0200
#else
#define MSVCRT__IOREAD 0x0001
#define MSVCRT__IOWRT 0x0002
......@@ -41,7 +40,6 @@
#define MSVCRT__IOERR 0x0020
#define MSVCRT__IOSTRG 0x0040
#define MSVCRT__IORW 0x0080
#define MSVCRT__IOAPPEND 0x0200
#endif /* USE_MSVCRT_PREFIX */
#ifndef NULL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment