NtCreateFile per MSDN should have the EALength attribute set to zero, not null

This commit is contained in:
Echelon9 2013-05-05 16:31:59 +10:00
parent 73989983f8
commit 84e65dbfd1
1 changed files with 2 additions and 2 deletions

View File

@ -2881,7 +2881,7 @@ XBSYSAPI EXPORTNUM(190) xboxkrnl::NTSTATUS NTAPI xboxkrnl::NtCreateFile
NTSTATUS ret = NtDll::NtCreateFile NTSTATUS ret = NtDll::NtCreateFile
( (
FileHandle, DesiredAccess, &NtObjAttr, (NtDll::IO_STATUS_BLOCK*)IoStatusBlock, FileHandle, DesiredAccess, &NtObjAttr, (NtDll::IO_STATUS_BLOCK*)IoStatusBlock,
(NtDll::LARGE_INTEGER*)AllocationSize, FileAttributes, ShareAccess, CreateDisposition, CreateOptions, NULL, NULL (NtDll::LARGE_INTEGER*)AllocationSize, FileAttributes, ShareAccess, CreateDisposition, CreateOptions, NULL, 0
); );
// If we're trying to open a regular file as a directory, fallback to // If we're trying to open a regular file as a directory, fallback to
@ -2922,7 +2922,7 @@ XBSYSAPI EXPORTNUM(190) xboxkrnl::NTSTATUS NTAPI xboxkrnl::NtCreateFile
ret = NtDll::NtCreateFile ret = NtDll::NtCreateFile
( (
FileHandle, DesiredAccess, &NtObjAttr, (NtDll::IO_STATUS_BLOCK*)IoStatusBlock, FileHandle, DesiredAccess, &NtObjAttr, (NtDll::IO_STATUS_BLOCK*)IoStatusBlock,
(NtDll::LARGE_INTEGER*)AllocationSize, FileAttributes, ShareAccess, CreateDisposition, CreateOptions, NULL, NULL (NtDll::LARGE_INTEGER*)AllocationSize, FileAttributes, ShareAccess, CreateDisposition, CreateOptions, NULL, 0
); );
} }