Changeset 3594 for trunk/kStuff/kHlp/Bare/kHlpBareHeap.c
- Timestamp:
- Oct 2, 2007, 11:35:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kStuff/kHlp/Bare/kHlpBareHeap.c
r3578 r3594 38 38 # define INCL_ERRORS 39 39 # include <os2.h> 40 40 41 #elif K_OS == K_OS_WINDOWS 41 42 # include <Windows.h> 43 42 44 #else 43 # error "port me"45 # include <k/kHlpAlloc.h> 44 46 #endif 45 47 … … 716 718 717 719 #else 718 # error "Port me" 720 int rc; 721 722 pSeg->cb = (cbMin + 0xffff) & ~(KSIZE)0xffff; 723 pSeg->pvBase = NULL; 724 rc = kHlpPageAlloc(&pSeg->pvBase, pSeg->cb, KPROT_READWRITE, K_FALSE); 725 if (rc) 726 { 727 pSeg->pvBase = NULL; 728 pSeg->cb = 0; 729 return rc; 730 } 731 719 732 #endif 720 733 … … 739 752 740 753 #else 741 # error "Port me" 754 int rc = kHlpPageFree(pSeg->pvBase, pSeg->cb); 755 KHLPHEAP_ASSERT(!rc); (void)rc; 756 742 757 #endif 743 758 }
Note:
See TracChangeset
for help on using the changeset viewer.