From 91858ca76e94d1eaef24e7167a089fbb79945af8 Mon Sep 17 00:00:00 2001 From: scrubjay55 Date: Tue, 4 Jan 2022 13:26:15 +0300 Subject: [PATCH] update readme --- README.md | 2 ++ src/main.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e7057e..468c556 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh - Cargo build ``` +git clone https://github.com/scrubjay55/click-once +cd click-once cargo build --release ``` diff --git a/src/main.rs b/src/main.rs index 97b4926..0663808 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,7 +60,7 @@ unsafe extern "system" fn low_level_mouse_proc( } WM_RBUTTONUPU => { let tick = GetTickCount(); - if !(tick - LAST_UP_R >= THRESHOLD_RM && tick - LAST_UP_R >= THRESHOLD_RM) { + if !(tick - LAST_UP_R >= THRESHOLD_RM) { return 1; } else { LAST_UP_R = tick;