X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=eglib%2Fsrc%2Fgfile-win32.c;h=2dde793dfeec7409333f5d7468a1278ae0cb5286;hb=59ec6fd3d68cc0e7c8085b95a3b436d4c9a3cef4;hp=a2e41ea9f6899db0036c8730f7258c85cacc262b;hpb=4ec59639b74b37344513873532a12ec68c90f601;p=mono.git diff --git a/eglib/src/gfile-win32.c b/eglib/src/gfile-win32.c index a2e41ea9f68..2dde793dfee 100644 --- a/eglib/src/gfile-win32.c +++ b/eglib/src/gfile-win32.c @@ -58,7 +58,7 @@ int mkstemp (char *tmp_template) utf16_template = _wmktemp( utf16_template); if (utf16_template && *utf16_template) { /* FIXME: _O_TEMPORARY causes file to disappear on close causing a test to fail */ - fd = _wopen( utf16_template, _O_BINARY | _O_CREAT /*| _O_TEMPORARY*/ | _O_EXCL, _S_IREAD | _S_IWRITE); + fd = _wopen( utf16_template, _O_BINARY | _O_CREAT /*| _O_TEMPORARY*/ | _O_RDWR | _O_EXCL, _S_IREAD | _S_IWRITE); } /* FIXME: this will crash if utf16_template == NULL */