Commit afd5580f authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard

Every EM_GETLINE send between a 32W to a 32A window returned

incomplete values before (the first 2 chars where cut away).
parent 1b450209
...@@ -623,9 +623,9 @@ void WINPROC_UnmapMsg32ATo32W( HWND32 hwnd, UINT32 msg, WPARAM32 wParam, LPARAM ...@@ -623,9 +623,9 @@ void WINPROC_UnmapMsg32ATo32W( HWND32 hwnd, UINT32 msg, WPARAM32 wParam, LPARAM
/* Multiline edit */ /* Multiline edit */
case EM_GETLINE32: case EM_GETLINE32:
{ LPARAM *ptr = (LPARAM *)lParam - 1; /* get the old lParam */ { LPARAM * ptr = (LPARAM *)lParam - 1; /* get the old lParam */
WORD len = *(WORD *)ptr; WORD len = *(WORD *) lParam;
lstrcpynWtoA( ((LPSTR)*ptr)+2, ((LPWSTR)(lParam + 1))+1, len ); lstrcpynWtoA( (LPSTR)*ptr , (LPWSTR)lParam, len );
HeapFree( SystemHeap, 0, ptr ); HeapFree( SystemHeap, 0, ptr );
} }
break; break;
...@@ -843,9 +843,9 @@ void WINPROC_UnmapMsg32WTo32A( HWND32 hwnd, UINT32 msg, WPARAM32 wParam, LPARAM ...@@ -843,9 +843,9 @@ void WINPROC_UnmapMsg32WTo32A( HWND32 hwnd, UINT32 msg, WPARAM32 wParam, LPARAM
/* Multiline edit */ /* Multiline edit */
case EM_GETLINE32: case EM_GETLINE32:
{ LPARAM *ptr = (LPARAM *)lParam - 1; /* get the old lParam */ { LPARAM * ptr = (LPARAM *)lParam - 1; /* get the old lparam */
WORD len = *(WORD *)ptr; WORD len = *(WORD *)ptr;
lstrcpynAtoW( ((LPWSTR)*ptr)+1, ((LPSTR)(lParam + 1))+2, len ); lstrcpynAtoW( (LPWSTR) *ptr, (LPSTR)lParam, len );
HeapFree( SystemHeap, 0, ptr ); HeapFree( SystemHeap, 0, ptr );
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment