Francois Gouget : setupapi: Avoid hardcoding the Unicode string literal lengths.
Alexandre Julliard
julliard at winehq.org
Fri Dec 16 11:22:55 CST 2011
Module: wine
Branch: master
Commit: 9097fa132e56cc542fa3ea77706fea79353d2f4a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9097fa132e56cc542fa3ea77706fea79353d2f4a
Author: Francois Gouget <fgouget at free.fr>
Date: Fri Dec 16 13:06:38 2011 +0100
setupapi: Avoid hardcoding the Unicode string literal lengths.
---
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);
More information about the wine-cvs
mailing list