Francois Gouget : ole32: 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: d21c37a8607145b8f6bf0828ff3757a9adcf1e4f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d21c37a8607145b8f6bf0828ff3757a9adcf1e4f

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Dec 16 13:07:09 2011 +0100

ole32: Avoid hardcoding the Unicode string literal lengths.

---

 dlls/ole32/comcat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ole32/comcat.c b/dlls/ole32/comcat.c
index 93e1f26..b3cd889 100644
--- a/dlls/ole32/comcat.c
+++ b/dlls/ole32/comcat.c
@@ -1333,7 +1333,7 @@ static LPENUMGUID COMCAT_CATID_IEnumGUID_Construct(
 
     This = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(CATID_IEnumGUIDImpl));
     if (This) {
-	WCHAR prefix[6] = { 'C', 'L', 'S', 'I', 'D', '\\' };
+	WCHAR prefix[] = { 'C', 'L', 'S', 'I', 'D', '\\' };
 
 	This->lpVtbl = &COMCAT_CATID_IEnumGUID_Vtbl;
 	memcpy(This->keyname, prefix, sizeof(prefix));




More information about the wine-cvs mailing list