From d4d36d1adf0559cb4e6010c4fef880e0725ea0b0 Mon Sep 17 00:00:00 2001 From: faint <46868845+ficcialfaint@users.noreply.github.com> Date: Fri, 17 Jan 2025 10:53:16 +0300 Subject: [PATCH] windows: Fix app icon loading (#22918) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #22602 Release Notes: - N/A --------- Co-authored-by: 张小白 <364772080@qq.com> --- crates/gpui/src/platform/windows/platform.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui/src/platform/windows/platform.rs b/crates/gpui/src/platform/windows/platform.rs index b01851ab86..16d298dc66 100644 --- a/crates/gpui/src/platform/windows/platform.rs +++ b/crates/gpui/src/platform/windows/platform.rs @@ -717,7 +717,7 @@ fn load_icon() -> Result { let handle = unsafe { LoadImageW( module, - IDI_APPLICATION, + windows::core::PCWSTR(1 as _), IMAGE_ICON, 0, 0,