Alexandros Frantzis (@afrantzis) commented about dlls/winewayland.drv/window.c:
+{ + return icon && NtUserGetIconInfo( icon, ii, NULL, NULL, NULL, 0 ) ? icon : NULL; +} + +static HICON get_window_icon(HWND hwnd, UINT type, HICON icon, ICONINFO* ret) +{ + icon = get_icon_info( icon, ret ); + if (!icon) + { + icon = get_icon_info( (HICON)send_message( hwnd, WM_GETICON, type, 0 ), ret ); + if (!icon) + icon = get_icon_info( (HICON)NtUserGetClassLongPtrW( hwnd, GCLP_HICON ), ret ); + if (!icon && type == ICON_BIG) + { + icon = LoadImageW( 0, (const WCHAR *)IDI_WINLOGO, IMAGE_ICON, 0, 0, + LR_SHARED | LR_DEFAULTSIZE ); Code style nit: Align with first function arg in previous line.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6938#note_99496