[Mmclibrary-svn] SF.net SVN: mmclibrary:[13] MMCLib2/Core/SnapinData.cs
Brought to you by:
imjimmurphy,
kachalkov
From: <tig...@us...> - 2009-10-08 09:03:53
|
Revision: 13 http://mmclibrary.svn.sourceforge.net/mmclibrary/?rev=13&view=rev Author: tigerharry Date: 2009-10-08 09:03:34 +0000 (Thu, 08 Oct 2009) Log Message: ----------- little improvement of marshall size Modified Paths: -------------- MMCLib2/Core/SnapinData.cs Modified: MMCLib2/Core/SnapinData.cs =================================================================== --- MMCLib2/Core/SnapinData.cs 2009-10-08 09:01:59 UTC (rev 12) +++ MMCLib2/Core/SnapinData.cs 2009-10-08 09:03:34 UTC (rev 13) @@ -164,7 +164,7 @@ writer.Flush(); - IntPtr dataSentPtr = Marshal.AllocCoTaskMem(4); + IntPtr dataSentPtr = Marshal.AllocCoTaskMem(IntPtr.Size); pStream.Write(stream.GetBuffer(), (int)stream.Length, dataSentPtr); int dataSent = Marshal.ReadInt32(dataSentPtr); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |