Changeset 21714 for branches/gcc-kmk/src/kernel32/heapshared.cpp
- Timestamp:
- Oct 18, 2011, 8:31:19 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/kernel32/heapshared.cpp
r21302 r21714 8 8 * 9 9 * TODO: Not process/thread safe (initializing/destroying heap) 10 * 10 * 11 11 * ASSUMPTION: Rtl library takes care of protection of heap increase/decrease 12 12 * (from multiple threads/processes) … … 158 158 dprintf(("KERNEL32: GetPageRangeFree(%08xh)", pageoffset)); 159 159 160 for(int i=pageoffset;i<MAX_HEAPPAGES;i++) { 160 int i; 161 for(i=pageoffset;i<MAX_HEAPPAGES;i++) { 161 162 if(pageBitmap[i] == 1) { 162 163 break; … … 184 185 { 185 186 int nrpagesfree = GetPageRangeFree(i); 186 if(nrpagesfree >= *size/PAGE_SIZE) 187 if(nrpagesfree >= *size/PAGE_SIZE) 187 188 { 188 189 newblock = (PVOID)((ULONG)pSharedMem + i*PAGE_SIZE);
Note:
See TracChangeset
for help on using the changeset viewer.