mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[SHELL32]
- Correctly handle NULL pidls in CDesktopFolder::CompareIDs and CDrivesFolder::CompareIDs. Based on a patch by Sylvain Deverre. CORE-10745 #resolve CORE-10747 svn path=/trunk/; revision=71080
This commit is contained in:
@@ -463,6 +463,12 @@ HRESULT WINAPI CDesktopFolder::BindToStorage(
|
||||
*/
|
||||
HRESULT WINAPI CDesktopFolder::CompareIDs(LPARAM lParam, PCUIDLIST_RELATIVE pidl1, PCUIDLIST_RELATIVE pidl2)
|
||||
{
|
||||
if (!pidl1 || !pidl2)
|
||||
{
|
||||
ERR("Got null pidl pointer (%Ix %p %p)!\n", lParam, pidl1, pidl2);
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
if (_ILIsSpecialFolder(pidl1) || _ILIsSpecialFolder(pidl2))
|
||||
return SHELL32_CompareGuidItems(this, lParam, pidl1, pidl2);
|
||||
|
||||
|
||||
@@ -298,6 +298,12 @@ HRESULT WINAPI CDrivesFolder::BindToStorage(PCUIDLIST_RELATIVE pidl, LPBC pbcRes
|
||||
|
||||
HRESULT WINAPI CDrivesFolder::CompareIDs(LPARAM lParam, PCUIDLIST_RELATIVE pidl1, PCUIDLIST_RELATIVE pidl2)
|
||||
{
|
||||
if (!pidl1 || !pidl2)
|
||||
{
|
||||
ERR("Got null pidl pointer (%Ix %p %p)!\n", lParam, pidl1, pidl2);
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
if (_ILIsSpecialFolder(pidl1) || _ILIsSpecialFolder(pidl2))
|
||||
return SHELL32_CompareGuidItems(this, lParam, pidl1, pidl2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user