* syscalls.cc (try_to_bin): Fix alignment of infobuf.
This commit is contained in:
parent
c2e861da3e
commit
214a0e67fd
|
@ -1,3 +1,7 @@
|
||||||
|
2009-04-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* syscalls.cc (try_to_bin): Fix alignment of infobuf.
|
||||||
|
|
||||||
2009-04-09 Corinna Vinschen <corinna@vinschen.de>
|
2009-04-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler_disk_file.cc (fhandler_disk_file::fchown): Catch an
|
* fhandler_disk_file.cc (fhandler_disk_file::fchown): Catch an
|
||||||
|
|
|
@ -153,7 +153,9 @@ try_to_bin (path_conv &pc, HANDLE &fh, ACCESS_MASK access)
|
||||||
PFILE_NAME_INFORMATION pfni;
|
PFILE_NAME_INFORMATION pfni;
|
||||||
PFILE_INTERNAL_INFORMATION pfii;
|
PFILE_INTERNAL_INFORMATION pfii;
|
||||||
PFILE_RENAME_INFORMATION pfri;
|
PFILE_RENAME_INFORMATION pfri;
|
||||||
BYTE infobuf[sizeof (FILE_NAME_INFORMATION ) + 32767 * sizeof (WCHAR)];
|
/* Enforce alignment for multi-purpose infobuf buffer */
|
||||||
|
BYTE infobuf[sizeof (FILE_NAME_INFORMATION) + 32767 * sizeof (WCHAR)]
|
||||||
|
__attribute__ ((aligned));
|
||||||
FILE_DISPOSITION_INFORMATION disp = { TRUE };
|
FILE_DISPOSITION_INFORMATION disp = { TRUE };
|
||||||
|
|
||||||
pfni = (PFILE_NAME_INFORMATION) infobuf;
|
pfni = (PFILE_NAME_INFORMATION) infobuf;
|
||||||
|
|
Loading…
Reference in New Issue