Skip to content

Commit

Permalink
Fix windows GUI build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Popax21 committed Nov 19, 2023
1 parent e9e06ab commit 534db3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn main() -> ExitCode {
#[cfg(all(target_os = "windows", feature = "gui"))]
if let Ok(console_env) = std::env::var("PITON_WIN_CONSOLE") {
unsafe {
match &console_env {
match console_env.as_str() {
"alloc" => {
windows::Win32::System::Console::AllocConsole().expect("failed to allocate a Win32 console");
},
Expand Down

0 comments on commit 534db3b

Please sign in to comment.