summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2012-11-03 01:09:35 +0100
committerDavid Ostrovsky <david@ostrovsky.org>2012-11-03 01:26:35 +0100
commitac2cfed553b8c9303f86758e9fe8b70911db00cd (patch)
tree9f69d31af0ad5e690ff0c8599cfe73cafeab81a3
parentc1b4077d1ffa57d325bf1149ac198d91cf981e3b (diff)
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
-rw-r--r--connectivity/source/inc/ado/Aolewrap.hxx3
1 files changed, 1 insertions, 2 deletions
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<T>& aWrapper)
- : WpBase(aWrapper)
- , pInterface(aWrapper.pInterface)
{
+ operator=(aWrapper);
}
virtual ~WpOLEBase()