mirror of
https://github.com/reactos/reactos.git
synced 2025-05-21 18:16:07 +00:00
[SHELL32_APITEST] Show that the default data object does not have a preferred drop effect
This commit is contained in:
parent
87fa11f54b
commit
0f2cb5abc7
1 changed files with 11 additions and 0 deletions
|
@ -258,6 +258,17 @@ static void TestDefaultFormat(PCIDLIST_ABSOLUTE pidlFolder, UINT cidl, PCUIDLIST
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
ReleaseStgMedium(&medium);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue