summaryrefslogtreecommitdiff
path: root/dtrans/source/win32/dnd/source.cxx
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2001-07-26 10:28:05 +0000
committerJoachim Lingner <jl@openoffice.org>2001-07-26 10:28:05 +0000
commit60eaca72471a34e38e520c8ae12a9b1dfc923e2b (patch)
tree26257938ca32b988ad8457a9bd458a199db044f8 /dtrans/source/win32/dnd/source.cxx
parentb5ca95e8292690220d086c450f607dce27408fd0 (diff)
#86173#
Diffstat (limited to 'dtrans/source/win32/dnd/source.cxx')
-rw-r--r--dtrans/source/win32/dnd/source.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/dtrans/source/win32/dnd/source.cxx b/dtrans/source/win32/dnd/source.cxx
index 4053dfd2d952..097607d67176 100644
--- a/dtrans/source/win32/dnd/source.cxx
+++ b/dtrans/source/win32/dnd/source.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: source.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: jl $ $Date: 2001-07-20 12:41:38 $
+ * last change: $Author: jl $ $Date: 2001-07-26 11:28:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -298,8 +298,8 @@ DWORD WINAPI DndOleSTAFunc(LPVOID pParams)
{
// The structure contains all arguments for DoDragDrop and other
DragSource *pSource= (DragSource*)pParams;
+ pSource->acquire();
// Drag and drop only works in a thread in which OleInitialize is called.
-
HRESULT hr= OleInitialize( NULL);
if( SUCCEEDED( hr) )
{
@@ -346,6 +346,7 @@ DWORD WINAPI DndOleSTAFunc(LPVOID pParams)
AttachThreadInput( threadId, pSource->m_threadIdWindow, FALSE);
OleUninitialize();
}
+ pSource->release();
return 0;
}