mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
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:
parent
eea9ba6e9e
commit
d1e3560f9c
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue