mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:03:02 +00:00
[RTL] actctx.c: Revert NtCurrentProcess() changes
This commit is contained in:
parent
3b9b26f912
commit
49ed915759
1 changed files with 5 additions and 4 deletions
|
@ -24,6 +24,7 @@
|
||||||
#include <wine/unicode.h>
|
#include <wine/unicode.h>
|
||||||
|
|
||||||
#define GetProcessHeap() RtlGetProcessHeap()
|
#define GetProcessHeap() RtlGetProcessHeap()
|
||||||
|
#define GetCurrentProcess() NtCurrentProcess()
|
||||||
|
|
||||||
BOOLEAN RtlpNotAllowingMultipleActivation;
|
BOOLEAN RtlpNotAllowingMultipleActivation;
|
||||||
|
|
||||||
|
@ -3015,7 +3016,7 @@ static NTSTATUS get_manifest_in_pe_file( struct actctx_loader* acl, struct assem
|
||||||
offset.QuadPart = 0;
|
offset.QuadPart = 0;
|
||||||
count = 0;
|
count = 0;
|
||||||
base = NULL;
|
base = NULL;
|
||||||
status = NtMapViewOfSection( mapping, NtCurrentProcess(), &base, 0, 0, &offset,
|
status = NtMapViewOfSection( mapping, GetCurrentProcess(), &base, 0, 0, &offset,
|
||||||
&count, ViewShare, 0, PAGE_READONLY );
|
&count, ViewShare, 0, PAGE_READONLY );
|
||||||
NtClose( mapping );
|
NtClose( mapping );
|
||||||
if (status != STATUS_SUCCESS) return status;
|
if (status != STATUS_SUCCESS) return status;
|
||||||
|
@ -3030,7 +3031,7 @@ static NTSTATUS get_manifest_in_pe_file( struct actctx_loader* acl, struct assem
|
||||||
}
|
}
|
||||||
else status = STATUS_INVALID_IMAGE_FORMAT;
|
else status = STATUS_INVALID_IMAGE_FORMAT;
|
||||||
|
|
||||||
NtUnmapViewOfSection( NtCurrentProcess(), base );
|
NtUnmapViewOfSection( GetCurrentProcess(), base );
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3065,7 +3066,7 @@ static NTSTATUS get_manifest_in_manifest_file( struct actctx_loader* acl, struct
|
||||||
offset.QuadPart = 0;
|
offset.QuadPart = 0;
|
||||||
count = 0;
|
count = 0;
|
||||||
base = NULL;
|
base = NULL;
|
||||||
status = NtMapViewOfSection( mapping, NtCurrentProcess(), &base, 0, 0, &offset,
|
status = NtMapViewOfSection( mapping, GetCurrentProcess(), &base, 0, 0, &offset,
|
||||||
&count, ViewShare, 0, PAGE_READONLY );
|
&count, ViewShare, 0, PAGE_READONLY );
|
||||||
NtClose( mapping );
|
NtClose( mapping );
|
||||||
if (status != STATUS_SUCCESS) return status;
|
if (status != STATUS_SUCCESS) return status;
|
||||||
|
@ -3076,7 +3077,7 @@ static NTSTATUS get_manifest_in_manifest_file( struct actctx_loader* acl, struct
|
||||||
if (status == STATUS_SUCCESS)
|
if (status == STATUS_SUCCESS)
|
||||||
status = parse_manifest(acl, ai, filename, directory, shared, base, (SIZE_T)info.EndOfFile.QuadPart);
|
status = parse_manifest(acl, ai, filename, directory, shared, base, (SIZE_T)info.EndOfFile.QuadPart);
|
||||||
|
|
||||||
NtUnmapViewOfSection( NtCurrentProcess(), base );
|
NtUnmapViewOfSection( GetCurrentProcess(), base );
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue