ole32: PropVariantCopy should return DISP_E_BADVARTYPE in case of bad source variant...
commitf9bc636d357221dfc036aacf84858257f045a1fe
authorDmitry Timoshkov <dmitry@baikal.ru>
Mon, 19 Oct 2015 02:28:10 +0000 (19 10:28 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 20 Oct 2015 15:25:33 +0000 (21 00:25 +0900)
treeeede1a0ada0f9fce2fd90a02266433766babc498
parent8e77d6a24da3823fca7c718e4a104242d4cb351f
ole32: PropVariantCopy should return DISP_E_BADVARTYPE in case of bad source variant type.

In some rare (notably for some VT_VECTOR) cases Windows implementation
returns STG_E_INVALIDPARAMETER, but returning DISP_E_BADVARTYPE should
cover most of cases.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/ole32/ole2.c
dlls/ole32/tests/propvariant.c