From cf45d599124a7bbb53a511e271d7864a0548e722 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Tue, 23 Mar 2010 13:33:29 +0000 Subject: [PATCH] include: Change an unsized [out] string to be sized in IMultiLanguage2. Unsized [out] strings are not allowed because of the potential to overflow the buffer passed in. --- include/mlang.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mlang.idl b/include/mlang.idl index a5b1b473f20..7664a22b200 100644 --- a/include/mlang.idl +++ b/include/mlang.idl @@ -668,7 +668,7 @@ interface IMultiLanguage2 : IUnknown HRESULT GetCodePageDescription( [in] UINT uiCodePage, [in] LCID lcid, - [in,out] LPWSTR lpWideCharStr, + [in,out,size_is(cchWideChar)] LPWSTR lpWideCharStr, [in] int cchWideChar); HRESULT IsCodePageInstallable(