[SHELL32_APITEST] Show that the default data object does not have a preferred drop effect

This commit is contained in:
Mark Jansen 2019-10-19 23:56:19 +02:00
parent 87fa11f54b
commit 0f2cb5abc7
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -258,6 +258,17 @@ static void TestDefaultFormat(PCIDLIST_ABSOLUTE pidlFolder, UINT cidl, PCUIDLIST
if (SUCCEEDED(hr))
ReleaseStgMedium(&medium);
}
// Not registered
CLIPFORMAT Format = RegisterClipboardFormatW(CFSTR_PREFERREDDROPEFFECTW);
FORMATETC formatetc = { Format, NULL, DVASPECT_CONTENT, -1, TYMED_HGLOBAL };
STGMEDIUM medium;
hr = spDataObj->GetData(&formatetc, &medium);
if (g_WinVersion < _WIN32_WINNT_VISTA)
ok_hex(hr, E_INVALIDARG);
else
ok_hex(hr, DV_E_FORMATETC);
}