Rob Shearman : include: Change an unsized [out] string to be sized in IMultiLanguage2.

Alexandre Julliard julliard at winehq.org
Tue Mar 23 12:12:50 CDT 2010


Module: wine
Branch: master
Commit: cf45d599124a7bbb53a511e271d7864a0548e722
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cf45d599124a7bbb53a511e271d7864a0548e722

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Tue Mar 23 13:33:29 2010 +0000

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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/mlang.idl b/include/mlang.idl
index a5b1b47..7664a22 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(




More information about the wine-cvs mailing list