oleaut32: Fix error handling/reporting in TLB_copy_all_custdata.
commitcd38abc455d8312ec9e13c7af5049358523032dc
authorKevin Puetz <PuetzKevinA@JohnDeere.com>
Wed, 18 Nov 2020 01:14:18 +0000 (17 19:14 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 18 Nov 2020 21:27:51 +0000 (18 22:27 +0100)
treeac8c72e245cc2a9d50909e9b86da2b8eb0764d94
parent8341b2550d7c9abe9d382edd2a7d065480c6de73
oleaut32: Fix error handling/reporting in TLB_copy_all_custdata.

VariantCopy clears existing contents of pvargDest and thus requires
it contain a valid (possibly-empty) VARIANT, not uninitialized garbage.

If a failure still occurs, propgate the HRESULT to GetAll*CustData.

Signed-off-by: Kevin Puetz <PuetzKevinA@JohnDeere.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/oleaut32/typelib.c