mirror of
https://github.com/reactos/reactos.git
synced 2025-05-27 21:18:15 +00:00
[RTL] actctx.c: Revert FILE_END_OF_FILE_INFORMATION changes
We still need to hack it, because FileEndOfFileInformation is not supported in user mode, neither in ReactOS, nor in Windows.
This commit is contained in:
parent
41ff75ce36
commit
1a6dc01f69
1 changed files with 4 additions and 4 deletions
|
@ -29,6 +29,8 @@
|
||||||
#define FIXME DPRINT1
|
#define FIXME DPRINT1
|
||||||
#define WARN DPRINT1
|
#define WARN DPRINT1
|
||||||
#define TRACE DPRINT
|
#define TRACE DPRINT
|
||||||
|
#define FILE_END_OF_FILE_INFORMATION FILE_STANDARD_INFORMATION
|
||||||
|
#define FileEndOfFileInformation FileStandardInformation
|
||||||
|
|
||||||
BOOLEAN RtlpNotAllowingMultipleActivation;
|
BOOLEAN RtlpNotAllowingMultipleActivation;
|
||||||
|
|
||||||
|
@ -3032,7 +3034,7 @@ static NTSTATUS get_manifest_in_pe_file( struct actctx_loader* acl, struct assem
|
||||||
static NTSTATUS get_manifest_in_manifest_file( struct actctx_loader* acl, struct assembly_identity* ai,
|
static NTSTATUS get_manifest_in_manifest_file( struct actctx_loader* acl, struct assembly_identity* ai,
|
||||||
LPCWSTR filename, LPCWSTR directory, BOOL shared, HANDLE file )
|
LPCWSTR filename, LPCWSTR directory, BOOL shared, HANDLE file )
|
||||||
{
|
{
|
||||||
FILE_STANDARD_INFORMATION info;
|
FILE_END_OF_FILE_INFORMATION info;
|
||||||
IO_STATUS_BLOCK io;
|
IO_STATUS_BLOCK io;
|
||||||
HANDLE mapping;
|
HANDLE mapping;
|
||||||
OBJECT_ATTRIBUTES attr;
|
OBJECT_ATTRIBUTES attr;
|
||||||
|
@ -3064,9 +3066,7 @@ static NTSTATUS get_manifest_in_manifest_file( struct actctx_loader* acl, struct
|
||||||
NtClose( mapping );
|
NtClose( mapping );
|
||||||
if (status != STATUS_SUCCESS) return status;
|
if (status != STATUS_SUCCESS) return status;
|
||||||
|
|
||||||
/* Fixme: WINE uses FileEndOfFileInformation with NtQueryInformationFile. */
|
status = NtQueryInformationFile( file, &io, &info, sizeof(info), FileEndOfFileInformation );
|
||||||
status = NtQueryInformationFile( file, &io, &info, sizeof(info), FileStandardInformation);
|
|
||||||
|
|
||||||
if (status == STATUS_SUCCESS)
|
if (status == STATUS_SUCCESS)
|
||||||
status = parse_manifest(acl, ai, filename, directory, shared, base, info.EndOfFile.QuadPart);
|
status = parse_manifest(acl, ai, filename, directory, shared, base, info.EndOfFile.QuadPart);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue