rem: *_actualCount = actualCount;
add: user_memcpy(_actualCount, &actualCount, sizeof(actualCount));
context: _kern_get_partitionable_spaces(partition_id partitionID, int32 changeCounter,							   partitionable_space_data *_buffer,							   int32 count, int32 *_actualCount){	if (!_buffer && count > 0)		return B_BAD_VALUE;		// copy in	int32 bufferSize = count * sizeof(partitionable_space_data);	partitionable_space_data *buffer = count > 0	                                   ? reinterpret_cast<partitionable_space_data*>(malloc(bufferSize))	                                   : NULL;	if (buffer)		user_memcpy(buffer, _buffer, bufferSize);		status_t error = B_OK;	// get the partition	KDiskDeviceManager *manager = KDiskDeviceManager::Default();	KPartition *partition = manager->ReadLockPartition(partitionID);	error = partition ? B_OK : B_ENTRY_NOT_FOUND;	if (!error) {		PartitionRegistrar registrar1(partition, true);		PartitionRegistrar registrar2(partition->Device(), true);		DeviceReadLocker locker(partition->Device(), true);		error = check_shadow_partition(partition, changeCounter) ? B_OK : B_BAD_VALUE;		if (!error) {			// get the disk system			KDiskSystem *diskSystem = partition->DiskSystem();			error = diskSystem ? B_OK : B_ENTRY_NOT_FOUND;			if (!error) {				// get the info				int32 actualCount;				error = diskSystem->GetPartitionableSpaces(partition, buffer,				                                           count, &actualCount);				if (!error && _actualCount)					*_actualCount = actualCount;			}		}	}		// copy out	if (!error && buffer)		user_memcpy(_buffer, buffer, bufferSize);	free(buffer);		return error;}