mirror of
https://github.com/reactos/reactos.git
synced 2025-07-03 20:31:29 +00:00
[CMAKE/NTOSKRNL]
Fix warnings svn path=/branches/cmake-bringup/; revision=51737
This commit is contained in:
parent
8942524e2a
commit
ef04b58c2e
1 changed files with 6 additions and 6 deletions
|
@ -56,7 +56,7 @@ KdbpReadSymFile(PVOID FileContext, PVOID Buffer, ULONG Length)
|
||||||
PROSSYM_KM_OWN_CONTEXT Context = (PROSSYM_KM_OWN_CONTEXT)FileContext;
|
PROSSYM_KM_OWN_CONTEXT Context = (PROSSYM_KM_OWN_CONTEXT)FileContext;
|
||||||
IO_STATUS_BLOCK Iosb;
|
IO_STATUS_BLOCK Iosb;
|
||||||
NTSTATUS Status = MiSimpleRead
|
NTSTATUS Status = MiSimpleRead
|
||||||
(Context->FileObject,
|
(Context->FileObject,
|
||||||
&Context->FileOffset,
|
&Context->FileOffset,
|
||||||
Buffer,
|
Buffer,
|
||||||
Length,
|
Length,
|
||||||
|
@ -65,7 +65,7 @@ KdbpReadSymFile(PVOID FileContext, PVOID Buffer, ULONG Length)
|
||||||
return NT_SUCCESS(Status);
|
return NT_SUCCESS(Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PROSSYM_OWN_FILECONTEXT
|
static PROSSYM_OWN_FILECONTEXT
|
||||||
KdbpCaptureFileForSymbols(PFILE_OBJECT FileObject)
|
KdbpCaptureFileForSymbols(PFILE_OBJECT FileObject)
|
||||||
{
|
{
|
||||||
PROSSYM_KM_OWN_CONTEXT Context = ExAllocatePool(NonPagedPool, sizeof(*Context));
|
PROSSYM_KM_OWN_CONTEXT Context = ExAllocatePool(NonPagedPool, sizeof(*Context));
|
||||||
|
@ -205,13 +205,13 @@ KdbSymPrintAddress(
|
||||||
else if (Address < MmSystemRangeStart)
|
else if (Address < MmSystemRangeStart)
|
||||||
{
|
{
|
||||||
MemoryArea = MmLocateMemoryAreaByAddress(&PsGetCurrentProcess()->Vm, Address);
|
MemoryArea = MmLocateMemoryAreaByAddress(&PsGetCurrentProcess()->Vm, Address);
|
||||||
if (!MemoryArea || MemoryArea->Type != MEMORY_AREA_SECTION_VIEW)
|
if (!MemoryArea || MemoryArea->Type != MEMORY_AREA_SECTION_VIEW)
|
||||||
{
|
{
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
SectionObject = MemoryArea->Data.SectionData.Section;
|
SectionObject = MemoryArea->Data.SectionData.Section;
|
||||||
if (!(SectionObject->AllocationAttributes & SEC_IMAGE)) goto end;
|
if (!(SectionObject->AllocationAttributes & SEC_IMAGE)) goto end;
|
||||||
if (MemoryArea->StartingAddress != KdbpImageBase)
|
if (MemoryArea->StartingAddress != (PVOID)KdbpImageBase)
|
||||||
{
|
{
|
||||||
if (KdbpRosSymInfo)
|
if (KdbpRosSymInfo)
|
||||||
{
|
{
|
||||||
|
@ -223,7 +223,7 @@ KdbSymPrintAddress(
|
||||||
if ((FileContext = KdbpCaptureFileForSymbols(SectionObject->FileObject)))
|
if ((FileContext = KdbpCaptureFileForSymbols(SectionObject->FileObject)))
|
||||||
{
|
{
|
||||||
if (RosSymCreateFromFile(FileContext, &KdbpRosSymInfo))
|
if (RosSymCreateFromFile(FileContext, &KdbpRosSymInfo))
|
||||||
KdbpImageBase = MemoryArea->StartingAddress;
|
KdbpImageBase = (ULONG_PTR)MemoryArea->StartingAddress;
|
||||||
|
|
||||||
KdbpReleaseFileForSymbols(FileContext);
|
KdbpReleaseFileForSymbols(FileContext);
|
||||||
}
|
}
|
||||||
|
@ -242,7 +242,7 @@ KdbSymPrintAddress(
|
||||||
{
|
{
|
||||||
DbgPrint
|
DbgPrint
|
||||||
("<%wZ:%x (%s:%d (%s))>",
|
("<%wZ:%x (%s:%d (%s))>",
|
||||||
&SectionObject->FileObject->FileName,
|
&SectionObject->FileObject->FileName,
|
||||||
RelativeAddress, FileName, LineNumber, FunctionName);
|
RelativeAddress, FileName, LineNumber, FunctionName);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue