diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx index 11de1f8a7ee7..235436f797b6 100644 --- a/vcl/win/source/window/salframe.cxx +++ b/vcl/win/source/window/salframe.cxx @@ -2414,7 +2414,7 @@ static void ImplGetKeyNameText( LONG lParam, sal_Unicode* pBuf, else { nKeyLen = aRet.getLength(); - wcscpy( aKeyBuf, aRet.getStr() ); + wcscpy( aKeyBuf, reinterpret_cast< const wchar_t* >( aRet.getStr() )); } }