In the past this was done in DllMain, the removal broke winelib applications.
Signed-off-by: Georg Lehmann dadschoorse@gmail.com --- dlls/winevulkan/vulkan.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/winevulkan/vulkan.c b/dlls/winevulkan/vulkan.c index 8e369d95f47..b0a8559fe2c 100644 --- a/dlls/winevulkan/vulkan.c +++ b/dlls/winevulkan/vulkan.c @@ -2053,6 +2053,10 @@ static void *wine_vk_get_global_proc_addr(const char *name) */ void *native_vkGetInstanceProcAddrWINE(VkInstance instance, const char *name) { + wine_vk_init_once(); + if (!vk_funcs) + return NULL; + return vk_funcs->p_vkGetInstanceProcAddr(instance, name); }
Signed-off-by: Liam Middlebrook lmiddlebrook@nvidia.com
On 11/6/20 8:06 AM, Georg Lehmann wrote:
In the past this was done in DllMain, the removal broke winelib applications.
Signed-off-by: Georg Lehmann dadschoorse@gmail.com
dlls/winevulkan/vulkan.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/winevulkan/vulkan.c b/dlls/winevulkan/vulkan.c index 8e369d95f47..b0a8559fe2c 100644 --- a/dlls/winevulkan/vulkan.c +++ b/dlls/winevulkan/vulkan.c @@ -2053,6 +2053,10 @@ static void *wine_vk_get_global_proc_addr(const char *name) */ void *native_vkGetInstanceProcAddrWINE(VkInstance instance, const char *name) {
- wine_vk_init_once();
- if (!vk_funcs)
return NULL;
}return vk_funcs->p_vkGetInstanceProcAddr(instance, name);