Unicode fixes for OS/2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -519,7 +519,7 @@ wxString WXDLLEXPORT wxGetWindowText(
|
||||
if ( hWnd )
|
||||
{
|
||||
long lLen = ::WinQueryWindowTextLength((HWND)hWnd) + 1;
|
||||
::WinQueryWindowText((HWND)hWnd, lLen, wxStringBuffer(vStr, lLen));
|
||||
::WinQueryWindowText((HWND)hWnd, lLen, (PSZ)(wxChar*)wxStringBuffer(vStr, lLen));
|
||||
}
|
||||
|
||||
return vStr;
|
||||
@@ -536,7 +536,7 @@ wxString WXDLLEXPORT wxGetWindowClass(
|
||||
|
||||
for ( ;; )
|
||||
{
|
||||
int nCount = ::WinQueryClassName((HWND)hWnd, nLen, wxStringBuffer(vStr, nLen));
|
||||
int nCount = ::WinQueryClassName((HWND)hWnd, nLen, (PSZ)(wxChar*)wxStringBuffer(vStr, nLen));
|
||||
|
||||
if (nCount == nLen )
|
||||
{
|
||||
|
Reference in New Issue
Block a user