Commit 260cab42 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

SHChangeNotify[A|W]: free only items we allocated.

parent e2905ea4
......@@ -222,8 +222,8 @@ void WINAPI SHChangeNotifyW (LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVO
if(uFlags & SHCNF_PATHA)
{
SHFree(pidl1);
SHFree(pidl2);
if (pidl1) SHFree(pidl1);
if (pidl2) SHFree(pidl2);
}
}
......@@ -269,8 +269,8 @@ void WINAPI SHChangeNotifyA (LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVO
/* if we allocated it, free it */
if(uFlags & SHCNF_PATHA)
{
SHFree(Pidls[0]);
SHFree(Pidls[1]);
if (Pidls[0]) SHFree(Pidls[0]);
if (Pidls[1]) SHFree(Pidls[1]);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment