Do not map already mapped section.

svn path=/trunk/; revision=54519
This commit is contained in:
Dmitry Gorbachev 2011-11-28 07:35:51 +00:00
parent 0155bc51c8
commit 81516fc73a

View file

@ -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;