diff options
author | Hennes Rohling <hro@openoffice.org> | 2002-01-30 08:28:24 +0000 |
---|---|---|
committer | Hennes Rohling <hro@openoffice.org> | 2002-01-30 08:28:24 +0000 |
commit | a83dd3d663f0dd890d5a172ef4e5525870c8c5f5 (patch) | |
tree | d408f0db851e0ccfb0e8a339240cbadffbebdfbe /fpicker | |
parent | 108cf6f44f462f885dd67a0e6c44c1c3016ff821 (diff) |
#97068# Don't send BFFM_SELECTION with zero pidl on NT4
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/win32/folderpicker/MtaFop.cxx | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/fpicker/source/win32/folderpicker/MtaFop.cxx b/fpicker/source/win32/folderpicker/MtaFop.cxx index 1766852b085a..121632b964ac 100644 --- a/fpicker/source/win32/folderpicker/MtaFop.cxx +++ b/fpicker/source/win32/folderpicker/MtaFop.cxx @@ -2,9 +2,9 @@ * * $RCSfile: MtaFop.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: tra $ $Date: 2001-10-09 08:07:04 $ + * last change: $Author: hro $ $Date: 2002-01-30 09:28:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -586,13 +586,16 @@ void SAL_CALL CMtaFolderPicker::onInitialized( ) { LPITEMIDLIST lpiidDisplayDir = getItemIdListFromPath( m_displayDir ); - SendMessageA( - m_hwnd, - BFFM_SETSELECTION, - (WPARAM)FALSE, - (LPARAM) lpiidDisplayDir ); + if ( lpiidDisplayDir ) + { + SendMessageA( + m_hwnd, + BFFM_SETSELECTION, + (WPARAM)FALSE, + (LPARAM) lpiidDisplayDir ); - releaseItemIdList( lpiidDisplayDir ); + releaseItemIdList( lpiidDisplayDir ); + } } //-------------------------------------------------------------------- |