Merge pull request #3121 from lambdageek/dev/managed-init_message
[mono.git] / eglib / src / gfile-win32.c
index a2e41ea9f6899db0036c8730f7258c85cacc262b..2dde793dfeec7409333f5d7468a1278ae0cb5286 100644 (file)
@@ -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 */