Skip to content
Snippets Groups Projects
Commit 2c9c20c0 authored by Rémi Bernon's avatar Rémi Bernon :speech_balloon: Committed by Alexandre Julliard
Browse files

sxs: Fix uninitialized variable warning.


Reported by MinGW GCC 10 with -Wmaybe-uninitialized, this seems to be
a typo.

Signed-off-by: default avatarRémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent abced34e
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,6 @@ static HRESULT WINAPI name_GetDisplayName(
{
static const WCHAR fmtW[] = {',','%','s','=','\"','%','s','\"',0};
struct name *name = impl_from_IAssemblyName( iface );
WCHAR version[30];
unsigned int len;
TRACE("%p, %p, %p, 0x%08x\n", iface, buffer, buflen, flags);
......@@ -146,7 +145,7 @@ static HRESULT WINAPI name_GetDisplayName(
if (name->arch) len += lstrlenW( archW ) + lstrlenW( name->arch ) + 4;
if (name->token) len += lstrlenW( tokenW ) + lstrlenW( name->token ) + 4;
if (name->type) len += lstrlenW( typeW ) + lstrlenW( name->type ) + 4;
if (name->version) len += lstrlenW( versionW ) + lstrlenW( version ) + 4;
if (name->version) len += lstrlenW( versionW ) + lstrlenW( name->version ) + 4;
if (len > *buflen)
{
*buflen = len;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment