]> sourceware.org Git - newlib-cygwin.git/commitdiff
* (struct __DIR_cache): Switch order of members so that the buffer
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 27 Feb 2008 17:52:33 +0000 (17:52 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 27 Feb 2008 17:52:33 +0000 (17:52 +0000)
given to NtQueryDirectoryFile is 8 byte aligned.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_disk_file.cc

index 554e93efad89071a32d0f445fcde1dfa955a1eaf..cc75b20d0867b5c7692bdf53b3fa4780ce99a48e 100644 (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
index c93fc68f56d527dc315d007e186c6462715e6e38..c06b5ffddad84d58ecb012ab9511648bb988ee95 100644 (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)
This page took 0.031257 seconds and 5 git commands to generate.