mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user