diff options
author | Tino Rachui <tra@openoffice.org> | 2001-12-11 15:35:45 +0000 |
---|---|---|
committer | Tino Rachui <tra@openoffice.org> | 2001-12-11 15:35:45 +0000 |
commit | 142500bebc6bc7a15354b5a4cf991674d0497029 (patch) | |
tree | ba8c52abae0cce2c3d44d78b4e2dd9905853e504 /fpicker | |
parent | 7911a80434cf7b6984489bf2ec6babd69026d011 (diff) |
#95803#terminate async. event notifier thread in dtor when necessary
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/win32/filepicker/asynceventnotifier.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fpicker/source/win32/filepicker/asynceventnotifier.cxx b/fpicker/source/win32/filepicker/asynceventnotifier.cxx index 65f93838a8ac..f3ff8455667c 100644 --- a/fpicker/source/win32/filepicker/asynceventnotifier.cxx +++ b/fpicker/source/win32/filepicker/asynceventnotifier.cxx @@ -2,9 +2,9 @@ * * $RCSfile: asynceventnotifier.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: tra $ $Date: 2001-11-30 11:47:58 $ + * last change: $Author: tra $ $Date: 2001-12-11 16:35:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -123,6 +123,9 @@ CAsyncFilePickerEventNotifier::~CAsyncFilePickerEventNotifier( ) OSL_ENSURE( dwResult == WAIT_OBJECT_0, "filepicker event notifier thread could not terminate" ); + if ( WAIT_TIMEOUT == dwResult ) + TerminateThread( m_hFilePickerNotifierThread, 0 ); + CloseHandle( m_hFilePickerNotifierThread ); } |