Commit 14504b12 authored by iggy@recycle.(none)'s avatar iggy@recycle.(none)

Merge recycle.(none):/src/bug25222/my50-bug25222

into  recycle.(none):/src/bug25222/my51-bug25222
parents c92e7b13 d3bdfa2c
...@@ -352,7 +352,12 @@ File my_sopen(const char *path, int oflag, int shflag, int pmode) ...@@ -352,7 +352,12 @@ File my_sopen(const char *path, int oflag, int shflag, int pmode)
return -1; /* return error to caller */ return -1; /* return error to caller */
} }
fh= _open_osfhandle((intptr_t)osfh, oflag & (_O_APPEND | _O_RDONLY | _O_TEXT)); if ((fh= _open_osfhandle((intptr_t)osfh,
oflag & (_O_APPEND | _O_RDONLY | _O_TEXT))) == -1)
{
_dosmaperr(GetLastError()); /* map error */
CloseHandle(osfh);
}
return fh; /* return handle */ return fh; /* return handle */
} }
......
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