Changeset 21872 in vbox
- Timestamp:
- Jul 30, 2009 9:30:56 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/alloc-win.cpp
r11020 r21872 111 111 void *pv = VirtualAlloc(NULL, RT_ALIGN_Z(cb, PAGE_SIZE), MEM_COMMIT, PAGE_READWRITE); 112 112 #else 113 void *pv = _aligned_malloc( cb, PAGE_SIZE);113 void *pv = _aligned_malloc(RT_ALIGN_Z(cb, PAGE_SIZE), PAGE_SIZE); 114 114 #endif 115 115 AssertMsg(pv, ("cb=%d lasterr=%d\n", cb, GetLastError())); … … 130 130 void *pv = VirtualAlloc(NULL, RT_ALIGN_Z(cb, PAGE_SIZE), MEM_COMMIT, PAGE_READWRITE); 131 131 #else 132 void *pv = _aligned_malloc( cb, PAGE_SIZE);132 void *pv = _aligned_malloc(RT_ALIGN_Z(cb, PAGE_SIZE), PAGE_SIZE); 133 133 #endif 134 134 if (pv)
Note:
See TracChangeset
for help on using the changeset viewer.