From 9097fa132e56cc542fa3ea77706fea79353d2f4a Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Fri, 16 Dec 2011 13:06:38 +0100 Subject: [PATCH] setupapi: Avoid hardcoding the Unicode string literal lengths. --- dlls/setupapi/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/setupapi/queue.c b/dlls/setupapi/queue.c index d30292453bf..cd733a0897d 100644 --- a/dlls/setupapi/queue.c +++ b/dlls/setupapi/queue.c @@ -978,7 +978,7 @@ static BOOL do_file_copyW( LPCWSTR source, LPCWSTR target, DWORD style, VS_FIXEDFILEINFO *TargetInfo; VS_FIXEDFILEINFO *SourceInfo; UINT length; - WCHAR SubBlock[2]={'\\',0}; + static const WCHAR SubBlock[]={'\\',0}; DWORD ret; VersionSource = HeapAlloc(GetProcessHeap(),0,VersionSizeSource); -- 2.11.4.GIT