* (struct __DIR_cache): Switch order of members so that the buffer

given to NtQueryDirectoryFile is 8 byte aligned.
This commit is contained in:
Corinna Vinschen 2008-02-27 17:52:33 +00:00
parent 8ba248a94b
commit bad25c125b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-02-25 Corinna Vinschen <corinna@vinschen.de>
* (struct __DIR_cache): Switch order of members so that the buffer
given to NtQueryDirectoryFile is 8 byte aligned.
2008-02-27 Christopher Faylor <me+cygwin@cgf.cx>
* cygtls.cc (_cygtls::handle_threadlist_exception): Make it clear that

View File

@ -1546,8 +1546,8 @@ fhandler_disk_file::rmdir ()
struct __DIR_cache
{
char __cache[DIR_BUF_SIZE]; /* W2K needs this buffer 8 byte aligned. */
ULONG __pos;
char __cache[DIR_BUF_SIZE];
};
#define d_cachepos(d) (((__DIR_cache *) (d)->__d_dirname)->__pos)