Commit 744ec30f authored by unknown's avatar unknown

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

into  recycle.(none):/src/bug25222/my51-bug25222


mysys/my_open.c:
  Auto merged
parents 6bd3d05e 83def161
...@@ -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