mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOSKRNL]
Pass process id to DbgUnLoadImageSymbols instead of ZwCurrentProcess() or a PEPROCESS. Patch by Jérôme Gardou <jerome.gardou at reactos dot org> CORE-8253 #resolve svn path=/trunk/; revision=63406
This commit is contained in:
parent
bbbef82de9
commit
3369bd4f94
4 changed files with 5 additions and 5 deletions
|
@ -846,7 +846,7 @@ ExpLoadBootSymbols(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
/* Load the symbols */
|
||||
DbgLoadImageSymbols(&SymbolString,
|
||||
LdrEntry->DllBase,
|
||||
(ULONG_PTR)ZwCurrentProcess());
|
||||
(ULONG_PTR)PsGetCurrentProcessId());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -356,7 +356,7 @@ KdInitSystem(IN ULONG BootPhase,
|
|||
RtlInitString(&ImageName, NameBuffer);
|
||||
DbgLoadImageSymbols(&ImageName,
|
||||
LdrEntry->DllBase,
|
||||
(ULONG_PTR)ZwCurrentProcess());
|
||||
(ULONG_PTR)PsGetCurrentProcessId());
|
||||
|
||||
/* Go to the next entry */
|
||||
NextEntry = NextEntry->Flink;
|
||||
|
|
|
@ -1185,7 +1185,7 @@ MiLoadUserSymbols(IN PCONTROL_AREA ControlArea,
|
|||
Status = RtlUnicodeStringToAnsiString(&FileNameA, FileName, TRUE);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
DbgLoadImageSymbols(&FileNameA, BaseAddress, (ULONG_PTR)Process);
|
||||
DbgLoadImageSymbols(&FileNameA, BaseAddress, (ULONG_PTR)Process->UniqueProcessId);
|
||||
RtlFreeAnsiString(&FileNameA);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -928,7 +928,7 @@ MmUnloadSystemImage(IN PVOID ImageHandle)
|
|||
/* Unload the symbols */
|
||||
DbgUnLoadImageSymbols(&TempName,
|
||||
BaseAddress,
|
||||
(ULONG_PTR)ZwCurrentProcess());
|
||||
(ULONG_PTR)PsGetCurrentProcessId());
|
||||
RtlFreeAnsiString(&TempName);
|
||||
}
|
||||
}
|
||||
|
@ -3309,7 +3309,7 @@ LoaderScan:
|
|||
/* Notify the debugger */
|
||||
DbgLoadImageSymbols(&AnsiTemp,
|
||||
LdrEntry->DllBase,
|
||||
(ULONG_PTR)ZwCurrentProcess());
|
||||
(ULONG_PTR)PsGetCurrentProcessId());
|
||||
LdrEntry->Flags |= LDRP_DEBUG_SYMBOLS_LOADED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue