Skip to content

Commit

Permalink
Merge pull request #2 from Ciantic/patch-1
Browse files Browse the repository at this point in the history
dwResSize parameter is missing from CreateIconFromResourceEx call
  • Loading branch information
elibroftw authored Dec 29, 2022
2 parents c917500 + fd2cc72 commit 91c24d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/win32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 91c24d0

Please sign in to comment.