mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:52:56 +00:00
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:
parent
6db382c056
commit
5f17f63202
3 changed files with 28 additions and 28 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue