Changeset 55563 in vbox
- Timestamp:
- Apr 30, 2015 3:37:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/localipc-win.cpp
r47976 r55563 347 347 /* 348 348 * Allocate and initialize the instance data. 349 * 350 * We align the size on pointer size here to make sure we get naturally 351 * aligned members in the critsect when the electric fence heap is active. 349 352 */ 350 353 size_t cchName = strlen(pszName); 351 size_t c ch= RT_OFFSETOF(RTLOCALIPCSERVERINT, szName[cchName + sizeof(RTLOCALIPC_WIN_PREFIX)]);352 PRTLOCALIPCSERVERINT pThis = (PRTLOCALIPCSERVERINT)RTMemAlloc( cch);354 size_t cbThis = RT_OFFSETOF(RTLOCALIPCSERVERINT, szName[cchName + sizeof(RTLOCALIPC_WIN_PREFIX)]); 355 PRTLOCALIPCSERVERINT pThis = (PRTLOCALIPCSERVERINT)RTMemAlloc(RT_ALIGN(cbThis, sizeof(void *))); 353 356 if (!pThis) 354 357 return VERR_NO_MEMORY;
Note:
See TracChangeset
for help on using the changeset viewer.