In the CRT, replaced __set_errno calls having Win32 error codes as their argument with _dosmaperr.

svn path=/trunk/; revision=39862
This commit is contained in:
Jeffrey Morlan 2009-03-04 07:39:44 +00:00
parent 6db382c056
commit 5f17f63202
3 changed files with 28 additions and 28 deletions

View file

@ -34,7 +34,7 @@ int CDECL _tstat64(const _TCHAR *path, struct __stat64 *buf)
if (!GetFileAttributesEx(path, GetFileExInfoStandard, &hfi))
{
TRACE("failed (%d)\n",GetLastError());
__set_errno(ERROR_FILE_NOT_FOUND);
_dosmaperr(ERROR_FILE_NOT_FOUND);
return -1;
}
@ -101,7 +101,7 @@ int CDECL _fstat64(int fd, struct __stat64* buf)
if (!buf)
{
WARN(":failed-NULL buf\n");
__set_errno(ERROR_INVALID_PARAMETER);
_dosmaperr(ERROR_INVALID_PARAMETER);
return -1;
}
@ -125,7 +125,7 @@ int CDECL _fstat64(int fd, struct __stat64* buf)
if (!GetFileInformationByHandle(hand, &hfi))
{
WARN(":failed-last error (%d)\n",GetLastError());
__set_errno(ERROR_INVALID_PARAMETER);
_dosmaperr(ERROR_INVALID_PARAMETER);
return -1;
}
buf->st_mode = _S_IFREG | _S_IREAD;