- Timestamp:
- Aug 4, 2003, 3:38:39 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/windowmsg.cpp
r10190 r10203 1 /* $Id: windowmsg.cpp,v 1.4 4 2003-07-31 15:56:47sandervl Exp $ */1 /* $Id: windowmsg.cpp,v 1.45 2003-08-04 13:38:39 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window message APIs for OS/2 … … 690 690 case EM_GETLINE: 691 691 { WORD len = (WORD)*plparam; 692 #ifdef __WIN32OS2__ 693 LPARAM *ptr = (LPARAM *) HEAP_xalloc( GetProcessHeap(), 0, sizeof(LPARAM) + sizeof (WORD) + len*sizeof(WCHAR) ); 694 #else 692 695 LPARAM *ptr = (LPARAM *) HEAP_xalloc( GetProcessHeap(), 0, sizeof(LPARAM) + sizeof (WORD) + len*sizeof(CHAR) ); 696 #endif 693 697 if (!ptr) return -1; 694 698 *ptr++ = *plparam; /* Store previous lParam */ … … 834 838 case EM_GETLINE: 835 839 { LPARAM * ptr = (LPARAM *)lParam - 1; /* get the old lparam */ 836 #ifdef __WIN32OS2__837 WORD len = *(WORD *)ptr/sizeof(WCHAR);838 #else839 840 WORD len = *(WORD *)ptr; 840 #endif 841 841 842 lstrcpynAtoW( (LPWSTR) *ptr, (LPSTR)lParam, len ); 842 843 HeapFree( GetProcessHeap(), 0, ptr );
Note:
See TracChangeset
for help on using the changeset viewer.