Commit 710725ea authored by Victor Zverovich's avatar Victor Zverovich

Fix implementation of open on windows.

parent 60c92a74
......@@ -64,7 +64,8 @@
namespace {
int open(const char *path, int oflag, int pmode) {
_sopen_s(fd, path, oflag, _SH_DENYNO, pmode);
int fd = -1;
_sopen_s(&fd, path, oflag, _SH_DENYNO, pmode);
return fd;
}
}
......
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