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 */
|
/* Load the symbols */
|
||||||
DbgLoadImageSymbols(&SymbolString,
|
DbgLoadImageSymbols(&SymbolString,
|
||||||
LdrEntry->DllBase,
|
LdrEntry->DllBase,
|
||||||
(ULONG_PTR)ZwCurrentProcess());
|
(ULONG_PTR)PsGetCurrentProcessId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -356,7 +356,7 @@ KdInitSystem(IN ULONG BootPhase,
|
||||||
RtlInitString(&ImageName, NameBuffer);
|
RtlInitString(&ImageName, NameBuffer);
|
||||||
DbgLoadImageSymbols(&ImageName,
|
DbgLoadImageSymbols(&ImageName,
|
||||||
LdrEntry->DllBase,
|
LdrEntry->DllBase,
|
||||||
(ULONG_PTR)ZwCurrentProcess());
|
(ULONG_PTR)PsGetCurrentProcessId());
|
||||||
|
|
||||||
/* Go to the next entry */
|
/* Go to the next entry */
|
||||||
NextEntry = NextEntry->Flink;
|
NextEntry = NextEntry->Flink;
|
||||||
|
|
|
@ -1185,7 +1185,7 @@ MiLoadUserSymbols(IN PCONTROL_AREA ControlArea,
|
||||||
Status = RtlUnicodeStringToAnsiString(&FileNameA, FileName, TRUE);
|
Status = RtlUnicodeStringToAnsiString(&FileNameA, FileName, TRUE);
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DbgLoadImageSymbols(&FileNameA, BaseAddress, (ULONG_PTR)Process);
|
DbgLoadImageSymbols(&FileNameA, BaseAddress, (ULONG_PTR)Process->UniqueProcessId);
|
||||||
RtlFreeAnsiString(&FileNameA);
|
RtlFreeAnsiString(&FileNameA);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -928,7 +928,7 @@ MmUnloadSystemImage(IN PVOID ImageHandle)
|
||||||
/* Unload the symbols */
|
/* Unload the symbols */
|
||||||
DbgUnLoadImageSymbols(&TempName,
|
DbgUnLoadImageSymbols(&TempName,
|
||||||
BaseAddress,
|
BaseAddress,
|
||||||
(ULONG_PTR)ZwCurrentProcess());
|
(ULONG_PTR)PsGetCurrentProcessId());
|
||||||
RtlFreeAnsiString(&TempName);
|
RtlFreeAnsiString(&TempName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3309,7 +3309,7 @@ LoaderScan:
|
||||||
/* Notify the debugger */
|
/* Notify the debugger */
|
||||||
DbgLoadImageSymbols(&AnsiTemp,
|
DbgLoadImageSymbols(&AnsiTemp,
|
||||||
LdrEntry->DllBase,
|
LdrEntry->DllBase,
|
||||||
(ULONG_PTR)ZwCurrentProcess());
|
(ULONG_PTR)PsGetCurrentProcessId());
|
||||||
LdrEntry->Flags |= LDRP_DEBUG_SYMBOLS_LOADED;
|
LdrEntry->Flags |= LDRP_DEBUG_SYMBOLS_LOADED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue