mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 02:15:43 +00:00
[NTDLL]
Do not map already mapped section. svn path=/trunk/; revision=54519
This commit is contained in:
parent
0155bc51c8
commit
81516fc73a
1 changed files with 4 additions and 4 deletions
|
@ -1251,7 +1251,7 @@ SkipCheck:
|
||||||
/* Stuff the image name in the TIB, for the debugger */
|
/* Stuff the image name in the TIB, for the debugger */
|
||||||
ArbitraryUserPointer = Teb->NtTib.ArbitraryUserPointer;
|
ArbitraryUserPointer = Teb->NtTib.ArbitraryUserPointer;
|
||||||
Teb->NtTib.ArbitraryUserPointer = FullDllName.Buffer;
|
Teb->NtTib.ArbitraryUserPointer = FullDllName.Buffer;
|
||||||
|
#if 0
|
||||||
/* Map the DLL */
|
/* Map the DLL */
|
||||||
Status = NtMapViewOfSection(SectionHandle,
|
Status = NtMapViewOfSection(SectionHandle,
|
||||||
NtCurrentProcess(),
|
NtCurrentProcess(),
|
||||||
|
@ -1263,7 +1263,7 @@ SkipCheck:
|
||||||
ViewShare,
|
ViewShare,
|
||||||
0,
|
0,
|
||||||
PAGE_READWRITE);
|
PAGE_READWRITE);
|
||||||
|
#endif
|
||||||
/* Restore */
|
/* Restore */
|
||||||
Teb->NtTib.ArbitraryUserPointer = ArbitraryUserPointer;
|
Teb->NtTib.ArbitraryUserPointer = ArbitraryUserPointer;
|
||||||
|
|
||||||
|
@ -1301,7 +1301,7 @@ NoRelocNeeded:
|
||||||
/* Stuff the image name in the TIB, for the debugger */
|
/* Stuff the image name in the TIB, for the debugger */
|
||||||
ArbitraryUserPointer = Teb->NtTib.ArbitraryUserPointer;
|
ArbitraryUserPointer = Teb->NtTib.ArbitraryUserPointer;
|
||||||
Teb->NtTib.ArbitraryUserPointer = FullDllName.Buffer;
|
Teb->NtTib.ArbitraryUserPointer = FullDllName.Buffer;
|
||||||
|
#if 0
|
||||||
/* Map the DLL */
|
/* Map the DLL */
|
||||||
Status = NtMapViewOfSection(SectionHandle,
|
Status = NtMapViewOfSection(SectionHandle,
|
||||||
NtCurrentProcess(),
|
NtCurrentProcess(),
|
||||||
|
@ -1313,7 +1313,7 @@ NoRelocNeeded:
|
||||||
ViewShare,
|
ViewShare,
|
||||||
0,
|
0,
|
||||||
PAGE_READWRITE);
|
PAGE_READWRITE);
|
||||||
|
#endif
|
||||||
/* Restore */
|
/* Restore */
|
||||||
Teb->NtTib.ArbitraryUserPointer = ArbitraryUserPointer;
|
Teb->NtTib.ArbitraryUserPointer = ArbitraryUserPointer;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue