wbemprox: Do not call Release() inside wbemprox_cf_CreateInstance().
commit798fbd420540310a8c853ec9676cf3490fc880ca
authorGiovanni Mascellani <gmascellani@codeweavers.com>
Tue, 20 Dec 2022 14:41:19 +0000 (20 15:41 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 6 Feb 2023 09:11:19 +0000 (6 10:11 +0100)
treec0298d371776459f852f62e781993f0302341e44
parenta4ed65d57721adade08440b9cabf44e3394fc3ad
wbemprox: Do not call Release() inside wbemprox_cf_CreateInstance().

The Ubisoft overlay version 135 hot patches and hooks wbem_locator_Release(),
but crashes if Release() is called inside CoCreateInstance(), a condition
that doesn't appear to happen on Windows. So we try to exhibit the
same behavior.
dlls/wbemprox/main.c
dlls/wbemprox/services.c
dlls/wbemprox/wbemlocator.c
dlls/wbemprox/wbemprox_private.h