mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
First code analysis changes, this "should" make Greenshot more stable and implement things as is supposed.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2481 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
3f4d93f2b6
commit
a394904aa3
64 changed files with 514 additions and 343 deletions
|
@ -27,6 +27,7 @@ using System.Text;
|
|||
|
||||
using Microsoft.Win32.SafeHandles;
|
||||
using System.Security;
|
||||
using System.Security.Permissions;
|
||||
|
||||
namespace GreenshotPlugin.UnmanagedHelpers {
|
||||
/// <summary>
|
||||
|
@ -297,6 +298,7 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
this.SetHandle(hIcon);
|
||||
}
|
||||
|
||||
[SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode = true)]
|
||||
protected override bool ReleaseHandle() {
|
||||
return User32.DestroyIcon(this.handle);
|
||||
}
|
||||
|
@ -322,6 +324,7 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
SetHandle(preexistingHandle);
|
||||
}
|
||||
|
||||
[SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode=true)]
|
||||
protected override bool ReleaseHandle() {
|
||||
bool returnValue = ReleaseDC(hWnd, handle);
|
||||
return returnValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue