return ERROR_DATATYPE_MISMATCH if query does not get PebBaseAddress

This commit is contained in:
Doug MacEachern 2009-08-05 14:29:16 -07:00
parent 8dd2a25568
commit e5c1e8ac07
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ static int sigar_pbi_get(sigar_t *sigar, HANDLE proc, PEB *peb)
}
if (!pbi.PebBaseAddress) {
return !SIGAR_OK;
/* likely we are 32-bit, pid process is 64-bit */
return ERROR_DATATYPE_MISMATCH;
}
size = sizeof(*peb);