diff options
| author | Ian Elliott <ian@LunarG.com> | 2015-04-09 18:07:15 -0600 |
|---|---|---|
| committer | Chia-I Wu <olv@lunarg.com> | 2015-04-16 17:48:19 +0800 |
| commit | 1e1bc3c8a23a245aca2cf3b6779e88afa2112e16 (patch) | |
| tree | b051ea84753e5223717788e7dc7a93c22a79f4f3 | |
| parent | 769bfae687069cc900f52295f83cd3f0a25a61da (diff) | |
| download | usermoji-1e1bc3c8a23a245aca2cf3b6779e88afa2112e16.tar.xz | |
Win: Fix typo and incorrect strlen for finding/loading ICDs.
| -rw-r--r-- | loader/loader.c | 2 | ||||
| -rw-r--r-- | loader/loader_platform.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/loader/loader.c b/loader/loader.c index 377de814..af88c415 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 230ee5d0..08ce2083 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 |
