From d21c37a8607145b8f6bf0828ff3757a9adcf1e4f Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Fri, 16 Dec 2011 13:07:09 +0100 Subject: [PATCH] ole32: Avoid hardcoding the Unicode string literal lengths. --- dlls/ole32/comcat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/comcat.c b/dlls/ole32/comcat.c index 93e1f26f947..b3cd889dc30 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)); -- 2.11.4.GIT