in unlikely case >>= fails

Change-Id: I368456acb085905736f1e221eeb3c79df375c7f0
This commit is contained in:
Caolán McNamara
2016-05-23 09:07:24 +01:00
parent 5c7ab8259c
commit 42e51c4a63

View File

@@ -489,7 +489,7 @@ void VistaFilePickerImpl::impl_sta_CreateSaveDialog(const RequestRef& rRequest)
css::uno::Sequence<sal_Int8> aProcessIdent(16);
rtl_getGlobalProcessId((sal_uInt8*)aProcessIdent.getArray());
css::uno::Any aAny = xSysDepWin->getWindowHandle(aProcessIdent,css::lang::SystemDependent::SYSTEM_WIN32);
sal_Int64 tmp;
sal_Int64 tmp = 0;
aAny >>= tmp;
if(tmp != 0)
m_hParentWindow = (HWND) tmp;