[Mwinapi-commits] SF.net SVN: mwinapi:[138] trunk/ManagedWinapi/Accessibility/ SystemAccessibleObje
Status: Beta
Brought to you by:
schierlm
From: <zi...@us...> - 2016-01-25 19:53:55
|
Revision: 138 http://sourceforge.net/p/mwinapi/code/138 Author: ziewer Date: 2016-01-25 19:53:53 +0000 (Mon, 25 Jan 2016) Log Message: ----------- Fixed array size when requesting Children Modified Paths: -------------- trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs Modified: trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs =================================================================== --- trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs 2015-12-11 17:45:31 UTC (rev 137) +++ trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs 2016-01-25 19:53:53 UTC (rev 138) @@ -514,9 +514,9 @@ if (childID != 0) return new SystemAccessibleObject[0]; int cs = iacc.accChildCount, csReal; - object[] children = new object[cs * 2]; + object[] children = new object[cs]; - uint result = AccessibleChildren(iacc, 0, cs * 2, children, out csReal); + uint result = AccessibleChildren(iacc, 0, cs, children, out csReal); if (result != 0 && result != 1) return new SystemAccessibleObject[0]; if (csReal == 1 && children[0] is int && (int)children[0] < 0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |