From: Rémi Bernon rbernon@codeweavers.com
--- dlls/win32u/vulkan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/win32u/vulkan.c b/dlls/win32u/vulkan.c index cb6684fc7f6..a42e9f86176 100644 --- a/dlls/win32u/vulkan.c +++ b/dlls/win32u/vulkan.c @@ -227,8 +227,8 @@ static void init_shared_resource_path( const WCHAR *name, UNICODE_STRING *str ) str->Length = str->MaximumLength - sizeof(WCHAR);
memcpy( str->Buffer + str->Length / sizeof(WCHAR), name, (len + 1) * sizeof(WCHAR) ); - str->MaximumLength += len; - str->Length += len; + str->MaximumLength += len * sizeof(WCHAR); + str->Length += len * sizeof(WCHAR); }
static HANDLE create_shared_resource_handle( D3DKMT_HANDLE local, const VkExportMemoryWin32HandleInfoKHR *info )