mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Merge recycle.(none):/src/bug25222/my50-bug25222
into recycle.(none):/src/bug25222/my51-bug25222
This commit is contained in:
commit
14504b12b8
1 changed files with 6 additions and 1 deletions
|
@ -352,7 +352,12 @@ File my_sopen(const char *path, int oflag, int shflag, int pmode)
|
|||
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 */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue