On 02/04/17 14:15, Lauri Kenttä wrote:
int CDECL MSVCRT__creat(const char *path, int flags) { int usedFlags = (flags & MSVCRT__O_TEXT)| MSVCRT__O_CREAT| MSVCRT__O_WRONLY| MSVCRT__O_TRUNC;
- return MSVCRT__open(path, usedFlags);
- return MSVCRT__open(path, usedFlags, MSVCRT__S_IWRITE);
}
According to MSDN the function takes pmode as second argument. Could you please add some tests for it? It looks like wine's implementation is handling second argument incorrectly.
Thanks, Piotr