Module: wine Branch: master Commit: ae8999f98232a011d8904e3f28bfa3d6a65ece09 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ae8999f98232a011d8904e3f28...
Author: Nikolay Sivov bunglehead@gmail.com Date: Sat Jun 6 23:27:21 2009 +0400
ntdll: Call NtCreateSection with NULL attributes loading native dll.
---
dlls/ntdll/loader.c | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index 925261a..166766b 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -1467,7 +1467,6 @@ static NTSTATUS load_native_dll( LPCWSTR load_path, LPCWSTR name, HANDLE file, { void *module; HANDLE mapping; - OBJECT_ATTRIBUTES attr; LARGE_INTEGER size; IMAGE_NT_HEADERS *nt; SIZE_T len = 0; @@ -1476,16 +1475,9 @@ static NTSTATUS load_native_dll( LPCWSTR load_path, LPCWSTR name, HANDLE file,
TRACE("Trying native dll %s\n", debugstr_w(name));
- attr.Length = sizeof(attr); - attr.RootDirectory = 0; - attr.ObjectName = NULL; - attr.Attributes = 0; - attr.SecurityDescriptor = NULL; - attr.SecurityQualityOfService = NULL; size.QuadPart = 0; - status = NtCreateSection( &mapping, STANDARD_RIGHTS_REQUIRED | SECTION_QUERY | SECTION_MAP_READ, - &attr, &size, PAGE_READONLY, SEC_IMAGE, file ); + NULL, &size, PAGE_READONLY, SEC_IMAGE, file ); if (status != STATUS_SUCCESS) return status;
module = NULL;