mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[KERNEL32] FindFirstFileExW: fix syscall buffer alignment
NtQueryDirectoryFile required the FileInformation buffer to be ULONG-aligned. Declare the aligned buffer explicitly.
This commit is contained in:
parent
4e389a992d
commit
655ddfa8e2
1 changed files with 3 additions and 2 deletions
|
@ -687,9 +687,10 @@ FindFirstFileExW(IN LPCWSTR lpFileName,
|
||||||
/*
|
/*
|
||||||
* May represent many FILE_BOTH_DIR_INFORMATION
|
* May represent many FILE_BOTH_DIR_INFORMATION
|
||||||
* or many FILE_FULL_DIR_INFORMATION structures.
|
* or many FILE_FULL_DIR_INFORMATION structures.
|
||||||
|
* NOTE: NtQueryDirectoryFile requires the buffer to be ULONG-aligned
|
||||||
*/
|
*/
|
||||||
BYTE DirectoryInfo[FIND_DATA_SIZE];
|
DECLSPEC_ALIGN(4) BYTE DirectoryInfo[FIND_DATA_SIZE];
|
||||||
DIR_INFORMATION DirInfo = {&DirectoryInfo};
|
DIR_INFORMATION DirInfo = { .DirInfo = &DirectoryInfo };
|
||||||
|
|
||||||
/* The search filter is always unused */
|
/* The search filter is always unused */
|
||||||
if (lpSearchFilter)
|
if (lpSearchFilter)
|
||||||
|
|
Loading…
Reference in a new issue