summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorIan Elliott <ian@LunarG.com>2015-04-09 18:07:15 -0600
committerChia-I Wu <olv@lunarg.com>2015-04-16 17:48:19 +0800
commit10ec96277b441ea55078a3dd87402c726a805f86 (patch)
treef62f96fc042c8a07a5db9be045ffbf408dc522b0 /libs
parent9c238c40a91bc6f7aa1212195f9c004dcf425ad5 (diff)
Win: Fix typo and incorrect strlen for finding/loading ICDs.
Diffstat (limited to 'libs')
-rw-r--r--libs/xcb_nvidia/xcb_nvidia.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/xcb_nvidia/xcb_nvidia.cpp b/libs/xcb_nvidia/xcb_nvidia.cpp
index 90269f66..e65ea95e 100644
--- a/libs/xcb_nvidia/xcb_nvidia.cpp
+++ b/libs/xcb_nvidia/xcb_nvidia.cpp
@@ -98,9 +98,9 @@ xcb_connection_t * xcb_connect(const char *displayname, int *screenp)
size_t rtn_len;
registry_str = loader_get_registry_string(HKEY_LOCAL_MACHINE,
- "Software\\VK",
+ "Software\\Vulkan",
"VK_DRIVERS_PATH");
- registry_len = strlen(registry_str);
+ registry_len = (registry_str) ? strlen(registry_str) : 0;
rtn_len = registry_len + 16;
rtn_str = (char *) malloc(rtn_len);
_snprintf(rtn_str, rtn_len, "%s\\%s", registry_str, "vk_nvidia.dll");