Author: gschneider
Date: Mon Aug 3 18:57:20 2009
New Revision: 42364
URL:
http://svn.reactos.org/svn/reactos?rev=42364&view=rev
Log:
Use ALL_X macros in fstat, fixes one msvcrt file winetest
Modified:
trunk/reactos/lib/sdk/crt/stdio/stat64.c
Modified: trunk/reactos/lib/sdk/crt/stdio/stat64.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/stdio/stat64.c…
==============================================================================
--- trunk/reactos/lib/sdk/crt/stdio/stat64.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/stdio/stat64.c [iso-8859-1] Mon Aug 3 18:57:20 2009
@@ -128,9 +128,9 @@
_dosmaperr(ERROR_INVALID_PARAMETER);
return -1;
}
- buf->st_mode = _S_IFREG | _S_IREAD;
+ buf->st_mode = _S_IFREG | ALL_S_IREAD;
if (!(hfi.dwFileAttributes & FILE_ATTRIBUTE_READONLY))
- buf->st_mode |= _S_IWRITE;
+ buf->st_mode |= ALL_S_IWRITE;
buf->st_size = ((__int64)hfi.nFileSizeHigh << 32) + hfi.nFileSizeLow;
RtlTimeToSecondsSince1970((LARGE_INTEGER *)&hfi.ftLastAccessTime, &dw);
buf->st_atime = dw;