From fd2cc72aa664b5c869ae96832e7aafe0a425d927 Mon Sep 17 00:00:00 2001 From: Jari Pennanen Date: Thu, 9 Jul 2020 18:04:29 +0300 Subject: [PATCH] Size is missing Fix the set resource bug https://github.com/qdot/systray-rs/issues/24 --- src/api/win32/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/win32/mod.rs b/src/api/win32/mod.rs index 0d695aa..73d4f63 100644 --- a/src/api/win32/mod.rs +++ b/src/api/win32/mod.rs @@ -418,7 +418,7 @@ impl Window { let hicon = unsafe { winuser::CreateIconFromResourceEx( icon_data.as_ptr() as PBYTE, - 0, + icon_data.len() as u32, TRUE, 0x30000, width as i32,