- Timestamp:
- Oct 6, 2014 7:55:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/memsafer-r3.cpp
r52399 r52960 288 288 * Configure the guard pages. 289 289 * SUPR3PageProtect isn't supported on all hosts, we ignore that. 290 * Additionally on darwin we cannot allocate pages without a R0 mapping and 291 * SUPR3PageAllocEx falls back to another method which is incompatible with 292 * the way SUPR3PageProtect works, it returns VERR_INVALID_PARAMETER. Ignore that case too. 290 293 */ 291 294 rc = SUPR3PageProtect(pvPages, NIL_RTR0PTR, 0, PAGE_SIZE, RTMEM_PROT_NONE); … … 297 300 SUPR3PageProtect(pvPages, NIL_RTR0PTR, 0, PAGE_SIZE, RTMEM_PROT_READ | RTMEM_PROT_WRITE); 298 301 } 299 else if (rc == VERR_NOT_SUPPORTED )302 else if (rc == VERR_NOT_SUPPORTED || rc == VERR_INVALID_PARAMETER) 300 303 return VINF_SUCCESS; 301 304
Note:
See TracChangeset
for help on using the changeset viewer.