Fix implementation of open on windows.

This commit is contained in:
Victor Zverovich 2014-04-29 06:00:01 -07:00
parent 60c92a7431
commit 710725ea9d

View File

@ -64,7 +64,8 @@
namespace { namespace {
int open(const char *path, int oflag, int pmode) { 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; return fd;
} }
} }