From ac2cfed553b8c9303f86758e9fe8b70911db00cd Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Sat, 3 Nov 2012 01:09:35 +0100 Subject: fdo#53070 fix access violation Through that different initialization pIUnknown got random address. The consequence was that if (pIUnknown) pIUnknown->Release(); ends with access viloation in WpBase& WpBase::operator=(const WpBase& rhs) Change-Id: I8b3c5de233d0868fea052c990cc83aed917117ae --- connectivity/source/inc/ado/Aolewrap.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/inc/ado/Aolewrap.hxx b/connectivity/source/inc/ado/Aolewrap.hxx index 6f428bfd19f1..4e1debe4266c 100644 --- a/connectivity/source/inc/ado/Aolewrap.hxx +++ b/connectivity/source/inc/ado/Aolewrap.hxx @@ -94,9 +94,8 @@ namespace connectivity } WpOLEBase(const WpOLEBase& aWrapper) - : WpBase(aWrapper) - , pInterface(aWrapper.pInterface) { + operator=(aWrapper); } virtual ~WpOLEBase() -- cgit