[2/2] shell32: Add proper support for SHGetFileInfo(SHGFI_ICONLOCATION | SHGFI_USEFILEATTRIBUTES).

Frank Richter frank.richter at gmail.com
Thu Jan 18 11:00:31 CST 2007


On 18.01.2007 16:23, Francois Gouget wrote:
> +            if (dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
> +            {
> +                lstrcpyW(psfi->szDisplayName, swShell32Name);
> +                psfi->iIcon = -IDI_SHELL_FOLDER;
> +            }

At least on Windows, folders have a file type, too - see HKCR\Folder. So
maybe use 'HCR_GetDefaultIconW(L"Folder", ...)' when the directory
attribute is set, and 'HCR_GetDefaultIconW(sTemp, ...)' otherwise?

-f.r.



More information about the wine-devel mailing list