Fix overflow exception [skip ci]

This commit is contained in:
RKrom 2014-11-04 21:58:40 +01:00
commit 193eb7d6d9
2 changed files with 2 additions and 2 deletions

View file

@ -865,7 +865,7 @@ namespace GreenshotPlugin.Core {
return (WindowStyleFlags)User32.GetWindowLongWrapper(hWnd, (int)WindowLongIndex.GWL_STYLE);
}
set {
User32.SetWindowLongWrapper(hWnd, (int)WindowLongIndex.GWL_STYLE, new IntPtr((uint)value));
User32.SetWindowLongWrapper(hWnd, (int)WindowLongIndex.GWL_STYLE, new IntPtr((long)value));
}
}

View file

@ -25,7 +25,7 @@ namespace GreenshotPlugin.UnmanagedHelpers {
/// Window Style Flags
/// </summary>
[Flags]
public enum WindowStyleFlags : uint {
public enum WindowStyleFlags : long {
//WS_OVERLAPPED = 0x00000000,
WS_POPUP = 0x80000000,
WS_CHILD = 0x40000000,