combase: Compare AddRef() return value against 1 instead of 0 in find_proxy_manager.
commitf55f0b834292eff17b232cf293372a0de80b14f7
authorJinoh Kang <jinoh.kang.kr@gmail.com>
Wed, 17 May 2023 14:30:16 +0000 (17 23:30 +0900)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 18 May 2023 10:27:41 +0000 (18 05:27 -0500)
tree28ba705e2c7339cbefe9dc026bbadd05a8661458
parentb97090214bfa28c9e56518d1ec365247edd0cf02
combase: Compare AddRef() return value against 1 instead of 0 in find_proxy_manager.

Today, find_proxy_manager() tests if AddRef() returns 0 in an attempt to
protect against a race condition bug.

Note that AddRef does not return zero in normal circumstances, since
AddRef returns the reference count after the increment, not before.

Fix this by comparing the return value of AddRef() against 1, not 0.
dlls/combase/marshal.c