Skip to content

Commit

Permalink
move COM_INIT static var lower
Browse files Browse the repository at this point in the history
  • Loading branch information
jewlexx committed Sep 8, 2023
1 parent b9faf8b commit cf0deca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/win/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ use std::sync::Mutex;

use windows::Win32::System::Com::{CoInitializeEx, CoUninitialize, COINIT_MULTITHREADED};

pub(crate) static COM_INIT: Mutex<ComInit> = Mutex::new(ComInit { initialized: false });

#[cfg(feature = "network")]
pub mod network;
#[cfg(feature = "root")]
pub mod root;

pub(crate) static COM_INIT: Mutex<ComInit> = Mutex::new(ComInit { initialized: false });

#[derive(Debug, Clone)]
pub(crate) struct ComInit {
initialized: bool,
Expand Down

0 comments on commit cf0deca

Please sign in to comment.