Merge ENGINE-454 fix mkstemp ENGINE-451
authorClaudio Luck <claudio.luck@pep.foundation>
Sun, 12 Aug 2018 01:42:50 +0200
branchENGINE-451
changeset 28127a3a556d4382
parent 2811 4bb07fc31b93
parent 2807 edd4e99844f1
child 2813 7f17851f7f17
Merge ENGINE-454 fix mkstemp
src/platform_windows.cpp
     1.1 --- a/src/platform_windows.cpp	Sun Aug 12 01:15:25 2018 +0200
     1.2 +++ b/src/platform_windows.cpp	Sun Aug 12 01:42:50 2018 +0200
     1.3 @@ -287,7 +287,7 @@
     1.4  int mkstemp(char *templ)
     1.5  {
     1.6      char *pathname = _mktemp(templ);
     1.7 -    if (errno)
     1.8 +    if (pathname == NULL)
     1.9          return -1;
    1.10      return _open(pathname, _O_RDWR | _O_CREAT | _O_EXCL, _S_IREAD | _S_IWRITE);
    1.11  }