From 9cbd33b62e1804a5de2d8df1c1318723f9ac38d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Wed, 8 May 2019 17:08:55 +0200 Subject: [PATCH] wined3d: Fix wined3d_get_wine_vk_version(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Józef Kucia Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/adapter_vk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/wined3d/adapter_vk.c b/dlls/wined3d/adapter_vk.c index fad78ae5931..b8d94a0e542 100644 --- a/dlls/wined3d/adapter_vk.c +++ b/dlls/wined3d/adapter_vk.c @@ -454,7 +454,9 @@ static unsigned int wined3d_get_wine_vk_version(void) major = atoi(ptr); - while (isdigit(*ptr) || *ptr == '.') + while (isdigit(*ptr)) + ++ptr; + if (*ptr == '.') ++ptr; minor = atoi(ptr);