[PATCH v3 5/6] shell32: Return E_INVALIDARG from FolderItems functions on null output.
Alex Henrie
alexhenrie24 at gmail.com
Tue Jul 5 23:55:39 CDT 2016
Cc: Christian Costa <titan.costa at gmail.com>
Cc: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/shell32/shelldispatch.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/dlls/shell32/shelldispatch.c b/dlls/shell32/shelldispatch.c
index 93c851f..6d7973e 100644
--- a/dlls/shell32/shelldispatch.c
+++ b/dlls/shell32/shelldispatch.c
@@ -1060,6 +1060,9 @@ static HRESULT WINAPI FolderItemsImpl_get_Application(FolderItems3 *iface, IDisp
{
FIXME("(%p,%p)\n", iface, ppid);
+ if (!ppid)
+ return E_INVALIDARG;
+
return E_NOTIMPL;
}
@@ -1067,6 +1070,9 @@ static HRESULT WINAPI FolderItemsImpl_get_Parent(FolderItems3 *iface, IDispatch
{
FIXME("(%p,%p)\n", iface, ppid);
+ if (!ppid)
+ return E_INVALIDARG;
+
return E_NOTIMPL;
}
@@ -1081,6 +1087,9 @@ static HRESULT WINAPI FolderItemsImpl__NewEnum(FolderItems3 *iface, IUnknown **p
{
FIXME("(%p,%p)\n", iface, ppunk);
+ if (!ppunk)
+ return E_INVALIDARG;
+
return E_NOTIMPL;
}
@@ -1102,6 +1111,9 @@ static HRESULT WINAPI FolderItemsImpl_get_Verbs(FolderItems3 *iface, FolderItemV
{
FIXME("(%p,%p)\n", iface, ppfic);
+ if (!ppfic)
+ return E_INVALIDARG;
+
return E_NOTIMPL;
}
--
2.9.0
More information about the wine-patches
mailing list