From: Ian Elliott Date: Fri, 10 Apr 2015 00:07:15 +0000 (-0600) Subject: Win: Fix typo and incorrect strlen for finding/loading ICDs. X-Git-Tag: upstream/1.1.92~5797 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e1bc3c8a23a245aca2cf3b6779e88afa2112e16;p=platform%2Fupstream%2FVulkan-Tools.git Win: Fix typo and incorrect strlen for finding/loading ICDs. --- diff --git a/loader/loader.c b/loader/loader.c index 377de81..af88c41 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -166,7 +166,7 @@ static char *loader_get_registry_and_env(const char *env_var, size_t rtn_len; registry_str = loader_get_registry_string(HKEY_LOCAL_MACHINE, - "Software\\VK", + "Software\\Vulkan", registry_value); registry_len = (registry_str) ? strlen(registry_str) : 0; diff --git a/loader/loader_platform.h b/loader/loader_platform.h index 230ee5d..08ce208 100644 --- a/loader/loader_platform.h +++ b/loader/loader_platform.h @@ -159,7 +159,7 @@ using namespace std; #define DEFAULT_VK_DRIVERS_PATH "C:\\Windows\\System32" // TODO/TBD: Is this an appropriate prefix for Windows? #define VK_DRIVER_LIBRARY_PREFIX "VK_" -#define VK_DRIVER_LIBRARY_PREFIX_LEN 4 +#define VK_DRIVER_LIBRARY_PREFIX_LEN 3 // TODO/TBD: Is this an appropriate suffix for Windows? #define VK_LAYER_LIBRARY_PREFIX "VKLayer" #define VK_LAYER_LIBRARY_PREFIX_LEN 8