mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user