mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
IExtractIcon::GetIconLocation is not documented to support a NULL pointer as last parameter
svn path=/trunk/; revision=29830
This commit is contained in:
parent
c494d813c2
commit
28f4b0ee2e
1 changed files with 2 additions and 1 deletions
|
@ -1920,6 +1920,7 @@ static HRESULT SHELL_PidlGeticonLocationW(IShellFolder* psf, LPCITEMIDLIST pidl,
|
|||
LPWSTR pszIconPath, int cchIconPath, int* piIcon)
|
||||
{
|
||||
LPCITEMIDLIST pidlLast;
|
||||
UINT wFlags;
|
||||
|
||||
HRESULT hr = SHBindToParent(pidl, &IID_IShellFolder, (LPVOID*)&psf, &pidlLast);
|
||||
|
||||
|
@ -1929,7 +1930,7 @@ static HRESULT SHELL_PidlGeticonLocationW(IShellFolder* psf, LPCITEMIDLIST pidl,
|
|||
hr = IShellFolder_GetUIObjectOf(psf, 0, 1, (LPCITEMIDLIST*)&pidlLast, &IID_IExtractIconW, NULL, (LPVOID*)&pei);
|
||||
|
||||
if (SUCCEEDED(hr)) {
|
||||
hr = IExtractIconW_GetIconLocation(pei, 0, pszIconPath, MAX_PATH, piIcon, NULL);
|
||||
hr = IExtractIconW_GetIconLocation(pei, 0, pszIconPath, MAX_PATH, piIcon, &wFlags);
|
||||
|
||||
IExtractIconW_Release(pei);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue