From 579fa32e1a1e148a056ca27765237fac77f5c23e Mon Sep 17 00:00:00 2001 From: Slawomir Cygan Date: Fri, 25 Aug 2017 10:54:03 +0200 Subject: Loader: Fix out-of-memory handling in loaderGetDeviceRegistryFiles Wrongly handled OOM error causes dEQP-VK.api.object_management.alloc_callback_fail test to fail, because wrong error code is returned. --- loader/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loader/loader.c') diff --git a/loader/loader.c b/loader/loader.c index 8d5b529c..1a1f08b0 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -561,7 +561,7 @@ VkResult loaderGetDeviceRegistryFiles(const struct loader_instance *inst, char * loader_log(inst, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0, "loaderGetDeviceRegistryFiles: Failed to allocate space for display device names."); result = VK_ERROR_OUT_OF_HOST_MEMORY; - return false; + return result; } } while (CM_Get_Device_ID_List(displayGUID, pDeviceNames, deviceNamesSize, flags) == CR_BUFFER_SMALL); -- cgit v1.2.3