&count,
&object_name) == KERN_SUCCESS)
{
- int path_len = proc_regionfilename(
- pid, address, map_filename, MAXPATHLEN);
- if (path_len == 0) {
+ if ((region_info.protection & VM_PROT_READ) == 0
+ || (region_info.protection & VM_PROT_EXECUTE) == 0) {
address += size;
continue;
}
- if ((region_info.protection & VM_PROT_READ) == 0
- || (region_info.protection & VM_PROT_EXECUTE) == 0) {
+ int path_len = proc_regionfilename(
+ pid, address, map_filename, MAXPATHLEN);
+ if (path_len == 0) {
address += size;
continue;
}