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

into  recycle.(none):/src/bug25222/my51-bug25222
This commit is contained in:
iggy@recycle.(none) 2007-03-07 10:51:25 -05:00
commit 14504b12b8

View file

@ -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 */
}