[PATCH v2] shell32: Improve semi-stub SHGetStockIconInfo to return an iconhandle if SHGSI_ICON flag is set

Alexandre Julliard julliard at winehq.org
Wed Oct 10 12:03:13 CDT 2018


Louis Lenders <xerox.xerox2000x at gmail.com> writes:

> +    if (flags & SHGSI_ICON)
> +    {
> +        hmod = GetModuleHandleW(shell32dllW);
> +        if (hmod)
> +            sii->hIcon = LoadIconW(hmod, MAKEINTRESOURCEW(IDI_SHELL_FILE));

Now that we have a bunch of icons, it shouldn't be hard to return them
instead of hardcoding IDI_SHELL_FILE.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list