setupapi: Avoid hardcoding the Unicode string literal lengths.
Francois Gouget
fgouget at free.fr
Fri Dec 16 06:06:38 CST 2011
Also make it static const.
---
dlls/setupapi/queue.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/setupapi/queue.c b/dlls/setupapi/queue.c
index d302924..cd733a0 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);
--
1.7.7.3
More information about the wine-patches
mailing list