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));
}
}