Changeset 708 for trunk/src/kernel32/virtual.cpp
- Timestamp:
- Aug 26, 1999, 7:56:26 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/virtual.cpp
r707 r708 1 /* $Id: virtual.cpp,v 1. 9 1999-08-26 15:05:14sandervl Exp $ */1 /* $Id: virtual.cpp,v 1.10 1999-08-26 17:56:26 sandervl Exp $ */ 2 2 3 3 /* … … 433 433 return(TRUE); //nothing to do 434 434 } 435 npages = ((int)lpvAddress + cbSize >> 12) - ((int)lpvAddress >> 12) + 1; 435 ULONG offset = ((ULONG)lpvAddress & 0xFFF); 436 npages = (cbSize >> 12); 437 if(cbSize & 0xFFF + offset) { 438 npages++; 439 } 436 440 437 441 lpvAddress = (LPVOID)((int)lpvAddress & ~0xFFF);
Note:
See TracChangeset
for help on using the changeset viewer.