Module: wine Branch: master Commit: 67181743a6a92ed16c35674489768450bb483b7d URL: http://source.winehq.org/git/wine.git/?a=commit;h=67181743a6a92ed16c35674489...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Thu Nov 17 20:30:39 2011 +0100
ole32: Avoid hardcoding array lengths.
---
dlls/ole32/comcat.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ole32/comcat.c b/dlls/ole32/comcat.c index 1874a8b..93e1f26 100644 --- a/dlls/ole32/comcat.c +++ b/dlls/ole32/comcat.c @@ -635,7 +635,7 @@ static HRESULT WINAPI COMCAT_ICatInformation_EnumImplCategoriesOfClass( REFCLSID rclsid, LPENUMCATID *ppenumCATID) { - static const WCHAR postfix[24] = { '\', 'I', 'm', 'p', 'l', 'e', 'm', 'e', + static const WCHAR postfix[] = { '\', 'I', 'm', 'p', 'l', 'e', 'm', 'e', 'n', 't', 'e', 'd', ' ', 'C', 'a', 't', 'e', 'g', 'o', 'r', 'i', 'e', 's', 0 };
@@ -657,7 +657,7 @@ static HRESULT WINAPI COMCAT_ICatInformation_EnumReqCategoriesOfClass( REFCLSID rclsid, LPENUMCATID *ppenumCATID) { - static const WCHAR postfix[21] = { '\', 'R', 'e', 'q', 'u', 'i', 'r', 'e', + static const WCHAR postfix[] = { '\', 'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', ' ', 'C', 'a', 't', 'e', 'g', 'o', 'r', 'i', 'e', 's', 0 };