Skip to content

Commit

Permalink
Fix checked overflow for pinvoke
Browse files Browse the repository at this point in the history
  • Loading branch information
hymccord committed Dec 27, 2021
1 parent 71ac8b1 commit 2bc7bba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ReadySetTarkov/Utility/IUser32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public interface IUser32
{
nint FindWindow(string className, string windowName);
bool FlashWindow(nint hWnd, bool invert);
void FlashWindow(nint hWnd, bool invert);
nint GetForegroundWindow();
int GetWindowLong(nint hWnd);
uint GetWindowThreadProcessId(nint hWnd);
Expand Down
2 changes: 1 addition & 1 deletion ReadySetTarkov/Utility/User32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public int GetWindowLong(nint hWnd)
(HWND)hWnd,
WINDOW_LONG_PTR_INDEX.GWL_STYLE);

public bool FlashWindow(nint hWnd, bool invert)
public void FlashWindow(nint hWnd, bool invert)
=> PInvoke.FlashWindow(
(HWND)hWnd,
invert);
Expand Down

0 comments on commit 2bc7bba

Please sign in to comment.