diff options
-rw-r--r-- | fpicker/source/win32/misc/WinImplHelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpicker/source/win32/misc/WinImplHelper.cxx b/fpicker/source/win32/misc/WinImplHelper.cxx index 5abdcb459e68..525773be01fe 100644 --- a/fpicker/source/win32/misc/WinImplHelper.cxx +++ b/fpicker/source/win32/misc/WinImplHelper.cxx @@ -109,17 +109,17 @@ OUString SAL_CALL ListboxGetString( HWND hwnd, sal_Int32 aPosition ) // without trailing '\0' that's why += 1 lItem++; - CAutoUnicodeBuffer aBuff( lItem ); + std::vector<sal_Unicode> vec(lItem); LRESULT lRet = SendMessageW( hwnd, CB_GETLBTEXT, aPosition, - reinterpret_cast<LPARAM>(&aBuff) ); + reinterpret_cast<LPARAM>(&vec[0])); OSL_ASSERT( lRet != CB_ERR ); if ( CB_ERR != lRet ) - aString = OUString( aBuff, lRet ); + aString = OUString(&vec[0], lRet); } return aString; |