Author: gadamopoulos
Date: Tue Nov 29 13:27:21 2016
New Revision: 73404
URL:
http://svn.reactos.org/svn/reactos?rev=73404&view=rev
Log:
[SHELL32_APITEST] -Test if CFSFolder::GetUIObjectOf can return an IDataObject for 0 cidl.
Modified:
trunk/rostests/apitests/shell32/CFSFolder.cpp
Modified: trunk/rostests/apitests/shell32/CFSFolder.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/shell32/CFSFolde…
==============================================================================
--- trunk/rostests/apitests/shell32/CFSFolder.cpp [iso-8859-1] (original)
+++ trunk/rostests/apitests/shell32/CFSFolder.cpp [iso-8859-1] Tue Nov 29 13:27:21 2016
@@ -160,6 +160,20 @@
ok(wcscmp(strretName.pOleStr, L"C:\\") == 0, "wrong name, got:
%S\n", strretName.pOleStr);
}
+VOID TestGetUIObjectOf()
+{
+ HRESULT hr;
+
+ /* Create a CFSFolder */
+ CComPtr<IShellFolder> psf;
+ hr = CoCreateInstance(CLSID_ShellFSFolder, NULL, CLSCTX_INPROC_SERVER,
IID_PPV_ARG(IShellFolder, &psf));
+ ok(hr == S_OK, "hr = %lx\n", hr);
+
+ /* test 0 cidl for IDataObject */
+ CComPtr<IDataObject> pdo;
+ hr = psf->GetUIObjectOf(NULL, 0, NULL, IID_NULL_PPV_ARG(IDataObject, &pdo));
+ ok(hr == E_INVALIDARG, "hr = %lx\n", hr);
+}
START_TEST(CFSFolder)
{
@@ -167,4 +181,5 @@
TestUninitialized();
TestInitialize();
+ TestGetUIObjectOf();
}