From 1e1bc3c8a23a245aca2cf3b6779e88afa2112e16 Mon Sep 17 00:00:00 2001 From: Ian Elliott Date: Thu, 9 Apr 2015 18:07:15 -0600 Subject: [PATCH] Win: Fix typo and incorrect strlen for finding/loading ICDs. --- loader/loader.c | 2 +- loader/loader_platform.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.7.4