mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-19 00:13:01 +08:00
win_fix_multi_tab: linux build
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
c87e7f1e28
commit
702c81cafe
@ -2,7 +2,6 @@ use crate::cliprdr::*;
|
|||||||
use hbb_common::log;
|
use hbb_common::log;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
#[cfg(windows)]
|
|
||||||
lazy_static::lazy_static! {
|
lazy_static::lazy_static! {
|
||||||
static ref CONTEXT_SEND: ContextSend = ContextSend{addr: Mutex::new(0)};
|
static ref CONTEXT_SEND: ContextSend = ContextSend{addr: Mutex::new(0)};
|
||||||
}
|
}
|
||||||
|
@ -249,8 +249,8 @@ pub(super) fn release_resouce() {
|
|||||||
if *write_lock != 0 {
|
if *write_lock != 0 {
|
||||||
let cap_display_info: *mut CapDisplayInfo = *write_lock as _;
|
let cap_display_info: *mut CapDisplayInfo = *write_lock as _;
|
||||||
unsafe {
|
unsafe {
|
||||||
let box_capturer = Box::from_raw((*cap_display_info).capturer.0);
|
let _box_capturer = Box::from_raw((*cap_display_info).capturer.0);
|
||||||
let box_cap_display_info = Box::from_raw(cap_display_info);
|
let _box_cap_display_info = Box::from_raw(cap_display_info);
|
||||||
*write_lock = 0;
|
*write_lock = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user