Remove duplicate PEB address checks
@@ -12252,10 +12252,6 @@ NTSTATUS PhGetProcessImageBaseAddress(
if (!NT_SUCCESS(status))
return status;
- // No PEB for System and minimal/pico processes. (dmex)
- if (!pebBaseAddress)
- return STATUS_UNSUCCESSFUL;
-
status = NtReadVirtualMemory(
ProcessHandle,
PTR_ADD_OFFSET(pebBaseAddress, UFIELD_OFFSET(PEB32, ImageBaseAddress)),
@@ -12279,10 +12275,6 @@ NTSTATUS PhGetProcessImageBaseAddress(
if (!NT_SUCCESS(status))
return status;
- // No PEB for System and minimal/pico processes. (dmex)
- if (!pebBaseAddress)
- return STATUS_UNSUCCESSFUL;
-
status = NtReadVirtualMemory(
ProcessHandle,
PTR_ADD_OFFSET(pebBaseAddress, UFIELD_OFFSET(PEB, ImageBaseAddress)),
@@ -12621,10 +12613,6 @@ NTSTATUS PhGetProcessIsPosix(
if (!NT_SUCCESS(status))
return status;
- // No PEB for System and minimal/pico processes. (dmex)
- if (!pebBaseAddress)
- return STATUS_UNSUCCESSFUL;
-
status = NtReadVirtualMemory(
ProcessHandle,
PTR_ADD_OFFSET(pebBaseAddress, UFIELD_OFFSET(PEB32, ImageSubsystem)),
@@ -12641,10 +12629,6 @@ NTSTATUS PhGetProcessIsPosix(
if (!NT_SUCCESS(status))
return status;
- // No PEB for System and minimal/pico processes. (dmex)
- if (!pebBaseAddress)
- return STATUS_UNSUCCESSFUL;
-
status = NtReadVirtualMemory(
ProcessHandle,
PTR_ADD_OFFSET(pebBaseAddress, UFIELD_OFFSET(PEB, ImageSubsystem)),
