From f5d047dcb80d760d46e90a1dacad206ddf55d827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 9 Jan 2013 21:29:52 +0100 Subject: [PATCH] second try with wcscpy() On mingw sal_Unicode is not wchar_t (see sal/types.h). --- vcl/win/source/window/salframe.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() )); } }