Skip to content

Commit ca78be7

Browse files
FabianLarss00d
authored andcommitted
fix(core): compile error without common-controls-v6 (#13719)
1 parent 4dbc976 commit ca78be7

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
tauri-runtime-wry: 'patch:bug'
3+
---
4+
5+
Fixed a compile error when using tauri without the `common-controls-v6` feature enabled.

crates/tauri-runtime-wry/src/dialog/windows.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33
// SPDX-License-Identifier: MIT
44

5-
use windows::core::{w, HSTRING, PCWSTR};
5+
use windows::core::{w, HSTRING};
66

77
enum Level {
88
Error,
@@ -33,7 +33,7 @@ fn dialog_inner(err: &str, level: Level) {
3333
unsafe {
3434
MessageBoxW(
3535
None,
36-
err,
36+
&err,
3737
title,
3838
match level {
3939
Level::Warning => MB_ICONWARNING,
@@ -46,7 +46,7 @@ fn dialog_inner(err: &str, level: Level) {
4646

4747
#[cfg(feature = "common-controls-v6")]
4848
{
49-
use windows::core::HRESULT;
49+
use windows::core::{HRESULT, PCWSTR};
5050
use windows::Win32::Foundation::*;
5151
use windows::Win32::UI::Controls::*;
5252
use windows::Win32::UI::Shell::*;

0 commit comments

Comments
 (0)