mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 13:37:09 +00:00
fix(core): compile error without common-controls-v6 (#13719)
This commit is contained in:
parent
6b2b9d6cbf
commit
f010ca5e91
5
.changes/compile-without-common-controls.md
Normal file
5
.changes/compile-without-common-controls.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
tauri-runtime-wry: 'patch:bug'
|
||||
---
|
||||
|
||||
Fixed a compile error when using tauri without the `common-controls-v6` feature enabled.
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use windows::core::{w, HSTRING, PCWSTR};
|
||||
use windows::core::{w, HSTRING};
|
||||
|
||||
enum Level {
|
||||
Error,
|
||||
@ -33,7 +33,7 @@ fn dialog_inner(err: &str, level: Level) {
|
||||
unsafe {
|
||||
MessageBoxW(
|
||||
None,
|
||||
err,
|
||||
&err,
|
||||
title,
|
||||
match level {
|
||||
Level::Warning => MB_ICONWARNING,
|
||||
@ -46,7 +46,7 @@ fn dialog_inner(err: &str, level: Level) {
|
||||
|
||||
#[cfg(feature = "common-controls-v6")]
|
||||
{
|
||||
use windows::core::HRESULT;
|
||||
use windows::core::{HRESULT, PCWSTR};
|
||||
use windows::Win32::Foundation::*;
|
||||
use windows::Win32::UI::Controls::*;
|
||||
use windows::Win32::UI::Shell::*;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user