Skip to content

Commit

Permalink
#1205 Fix error "REAPER hwnd_info hwnd pointer was null"
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Sep 23, 2024
1 parent 5803cb1 commit a16aade
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion main/src/infrastructure/plugin/backbone_shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2317,7 +2317,10 @@ impl HookPostCommand for BackboneShell {
}

impl HwndInfo for BackboneShell {
fn call(hwnd: Hwnd, info_type: HwndInfoType, msg: Option<AccelMsg>) -> i32 {
fn call(hwnd: Option<Hwnd>, info_type: HwndInfoType, msg: Option<AccelMsg>) -> i32 {
let Some(hwnd) = hwnd else {
return 0;
};
const IGNORE: i32 = 0;
const PASS_TO_WINDOW: i32 = 1;
const PROCESS_GLOBALLY: i32 = -1;
Expand Down

0 comments on commit a16aade

Please sign in to comment.