From 81516fc73a0b8c3f429a2e04b4c635e1cee2e05f Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Mon, 28 Nov 2011 07:35:51 +0000 Subject: [PATCH] [NTDLL] Do not map already mapped section. svn path=/trunk/; revision=54519 --- reactos/dll/ntdll/ldr/ldrutils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/dll/ntdll/ldr/ldrutils.c b/reactos/dll/ntdll/ldr/ldrutils.c index a8026cc495b..e969addd206 100644 --- a/reactos/dll/ntdll/ldr/ldrutils.c +++ b/reactos/dll/ntdll/ldr/ldrutils.c @@ -1251,7 +1251,7 @@ SkipCheck: /* Stuff the image name in the TIB, for the debugger */ ArbitraryUserPointer = Teb->NtTib.ArbitraryUserPointer; Teb->NtTib.ArbitraryUserPointer = FullDllName.Buffer; - +#if 0 /* Map the DLL */ Status = NtMapViewOfSection(SectionHandle, NtCurrentProcess(), @@ -1263,7 +1263,7 @@ SkipCheck: ViewShare, 0, PAGE_READWRITE); - +#endif /* Restore */ Teb->NtTib.ArbitraryUserPointer = ArbitraryUserPointer; @@ -1301,7 +1301,7 @@ NoRelocNeeded: /* Stuff the image name in the TIB, for the debugger */ ArbitraryUserPointer = Teb->NtTib.ArbitraryUserPointer; Teb->NtTib.ArbitraryUserPointer = FullDllName.Buffer; - +#if 0 /* Map the DLL */ Status = NtMapViewOfSection(SectionHandle, NtCurrentProcess(), @@ -1313,7 +1313,7 @@ NoRelocNeeded: ViewShare, 0, PAGE_READWRITE); - +#endif /* Restore */ Teb->NtTib.ArbitraryUserPointer = ArbitraryUserPointer;