diff options
| author | Slawomir Cygan <slawomir.cygan@intel.com> | 2017-08-25 10:54:03 +0200 |
|---|---|---|
| committer | Lenny Komow <lenny@lunarg.com> | 2017-08-25 13:46:03 -0600 |
| commit | 579fa32e1a1e148a056ca27765237fac77f5c23e (patch) | |
| tree | 34a9bed90e763986a9743b6e85e37970827dcb7c /loader | |
| parent | 988efa907b636abc0d28294c4781cd1229dc9cf1 (diff) | |
| download | usermoji-579fa32e1a1e148a056ca27765237fac77f5c23e.tar.xz | |
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.
Diffstat (limited to 'loader')
| -rw-r--r-- | loader/loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
