Account for possible lower space. Refs #279

This commit is contained in:
Bart Muzzin
2016-06-07 10:19:50 -07:00
committed by baldurk
parent 2f07027386
commit ffdea92260
+1 -1
View File
@@ -645,7 +645,7 @@ static VkResult FillPropertyCountAndList(const VkExtensionProperties *src, uint3
uint32_t dstSpace = *dstCount;
// return the number of extensions.
*dstCount = numExts;
*dstCount = RDCMIN(numExts, dstSpace);
// copy as much as there's space for, up to how many there are
memcpy(dstProps, src, sizeof(VkExtensionProperties) * RDCMIN(numExts, dstSpace));