return ERROR_DATATYPE_MISMATCH if query does not get PebBaseAddress
This commit is contained in:
parent
8dd2a25568
commit
e5c1e8ac07
|
@ -55,7 +55,8 @@ static int sigar_pbi_get(sigar_t *sigar, HANDLE proc, PEB *peb)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pbi.PebBaseAddress) {
|
if (!pbi.PebBaseAddress) {
|
||||||
return !SIGAR_OK;
|
/* likely we are 32-bit, pid process is 64-bit */
|
||||||
|
return ERROR_DATATYPE_MISMATCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
size = sizeof(*peb);
|
size = sizeof(*peb);
|
||||||
|
|
Loading…
Reference in New Issue