v140: Bug 14251 - Inconsistencies in the definition of queries
diff --git a/demos/cube.c b/demos/cube.c
index 5ec9683..a848bcc 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -316,7 +316,7 @@
     VkQueue queue;
     uint32_t graphics_queue_node_index;
     VkPhysicalDeviceProperties gpu_props;
-    VkPhysicalDeviceQueueProperties *queue_props;
+    VkQueueFamilyProperties *queue_props;
     VkPhysicalDeviceMemoryProperties memory_properties;
 
     VkFramebuffer framebuffer;
@@ -2407,12 +2407,13 @@
     err = vkGetPhysicalDeviceProperties(demo->gpu, &demo->gpu_props);
     assert(!err);
 
-    err = vkGetPhysicalDeviceQueueCount(demo->gpu, &demo->queue_count);
+    /* Call with NULL data to get count */
+    err = vkGetPhysicalDeviceQueueFamilyProperties(demo->gpu, &demo->queue_count, NULL);
     assert(!err);
     assert(demo->queue_count >= 1);
 
-    demo->queue_props = (VkPhysicalDeviceQueueProperties *) malloc(demo->queue_count * sizeof(VkPhysicalDeviceQueueProperties));
-    err = vkGetPhysicalDeviceQueueProperties(demo->gpu, demo->queue_count, demo->queue_props);
+    demo->queue_props = (VkQueueFamilyProperties *) malloc(demo->queue_count * sizeof(VkQueueFamilyProperties));
+    err = vkGetPhysicalDeviceQueueFamilyProperties(demo->gpu, &demo->queue_count, demo->queue_props);
     assert(!err);
     assert(demo->queue_count >= 1);
 }