- snapshotrecord->backingStore = (snapshot_page_t *)PageAlignAddressUpward(snapshotrecord->backingStoreBasePtr);
- snapshotrecord->backingRecords = (struct BackingPageRecord *)model_malloc(sizeof(struct BackingPageRecord) * numbackingpages);
- snapshotrecord->snapShots = (struct SnapShotRecord *)model_malloc(sizeof(struct SnapShotRecord) * numsnapshots);
- snapshotrecord->lastSnapShot = 0;
- snapshotrecord->lastBackingPage = 0;
- snapshotrecord->lastRegion = 0;
- snapshotrecord->maxRegions = nummemoryregions;
- snapshotrecord->maxBackingPages = numbackingpages;
- snapshotrecord->maxSnapShots = numsnapshots;
+ mprot_snap->backingStore = (snapshot_page_t *)PageAlignAddressUpward(mprot_snap->backingStoreBasePtr);
+ mprot_snap->backingRecords = (struct BackingPageRecord *)model_malloc(sizeof(struct BackingPageRecord) * numbackingpages);
+ mprot_snap->snapShots = (struct SnapShotRecord *)model_malloc(sizeof(struct SnapShotRecord) * numsnapshots);
+ mprot_snap->lastSnapShot = 0;
+ mprot_snap->lastBackingPage = 0;
+ mprot_snap->lastRegion = 0;
+ mprot_snap->maxRegions = nummemoryregions;
+ mprot_snap->maxBackingPages = numbackingpages;
+ mprot_snap->maxSnapShots = numsnapshots;