Fixed compile error.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2502 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-02-18 08:37:34 +00:00
commit d1e3560f9c

View file

@ -295,7 +295,7 @@ namespace Greenshot.Helpers {
// Release each file // Release each file
for (int i = 0; i < message.FileCount; i++) { for (int i = 0; i < message.FileCount; i++) {
Marshal.DestroyStructure(runptr, fileDescType); Marshal.DestroyStructure(runptr, fileDescType);
runptr += fsize; runptr = new IntPtr(runptr.ToInt64() + fsize);
} }
// Release the file // Release the file
Marshal.FreeHGlobal(message.Files); Marshal.FreeHGlobal(message.Files);
@ -328,7 +328,7 @@ namespace Greenshot.Helpers {
mfd.name = Path.GetFileName(path); mfd.name = Path.GetFileName(path);
mfd.path = path; mfd.path = path;
Marshal.StructureToPtr(mfd, runptr, false); Marshal.StructureToPtr(mfd, runptr, false);
runptr += asize; runptr = new IntPtr(runptr.ToInt64() + asize);
} }
fileCount = _files.Count; fileCount = _files.Count;
@ -693,7 +693,7 @@ namespace Greenshot.Helpers {
// stick it in the memory block // stick it in the memory block
Marshal.StructureToPtr(interop, ptr, false); Marshal.StructureToPtr(interop, ptr, false);
ptr += size; ptr = new IntPtr(ptr.ToInt64() + size);
} }
} }
@ -723,7 +723,7 @@ namespace Greenshot.Helpers {
IntPtr ptr = _handle.Clone(); IntPtr ptr = _handle.Clone();
for (int i = 0; i < _count; i++) { for (int i = 0; i < _count; i++) {
Marshal.DestroyStructure(ptr, type); Marshal.DestroyStructure(ptr, type);
ptr += size; ptr = new IntPtr(ptr.ToInt64() + size);
} }
// free the memory // free the memory