Changeset 4965 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Sep 21, 2007 4:00:02 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c
r4963 r4965 1782 1782 1783 1783 /* 1784 * Validate input. 1784 * Validate input. The allowed allocation size must be at least equal to the maximum guest VRAM size. 1785 1785 */ 1786 1786 AssertReturn(SUP_IS_SESSION_VALID(pSession), VERR_INVALID_PARAMETER); 1787 1787 AssertPtrReturn(ppvR3, VERR_INVALID_POINTER); 1788 if (cPages < 1 || cPages > = 4096)1789 { 1790 dprintf(("SUPR0PageAlloc: Illegal request cb=%u; must be greater than 0 and smaller than 1 6MB.\n", cPages));1788 if (cPages < 1 || cPages > (128 * _1M)/PAGE_SIZE) 1789 { 1790 dprintf(("SUPR0PageAlloc: Illegal request cb=%u; must be greater than 0 and smaller than 128MB.\n", cPages)); 1791 1791 return VERR_INVALID_PARAMETER; 1792 1792 }
Note:
See TracChangeset
for help on using the changeset viewer.