From bad25c125b077ecb8309223cf689c02c6c4ba5ec Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 27 Feb 2008 17:52:33 +0000 Subject: [PATCH] * (struct __DIR_cache): Switch order of members so that the buffer given to NtQueryDirectoryFile is 8 byte aligned. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_disk_file.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 554e93efa..cc75b20d0 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2008-02-25 Corinna Vinschen + + * (struct __DIR_cache): Switch order of members so that the buffer + given to NtQueryDirectoryFile is 8 byte aligned. + 2008-02-27 Christopher Faylor * cygtls.cc (_cygtls::handle_threadlist_exception): Make it clear that diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index c93fc68f5..c06b5ffdd 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -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) -- 2.43.5