Changeset 10203 for trunk/src


Ignore:
Timestamp:
Aug 4, 2003, 3:38:39 PM (22 years ago)
Author:
sandervl
Message:

bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/windowmsg.cpp

    r10190 r10203  
    1 /* $Id: windowmsg.cpp,v 1.44 2003-07-31 15:56:47 sandervl Exp $ */
     1/* $Id: windowmsg.cpp,v 1.45 2003-08-04 13:38:39 sandervl Exp $ */
    22/*
    33 * Win32 window message APIs for OS/2
     
    690690    case EM_GETLINE:
    691691        { WORD len = (WORD)*plparam;
     692#ifdef __WIN32OS2__
     693          LPARAM *ptr = (LPARAM *) HEAP_xalloc( GetProcessHeap(), 0, sizeof(LPARAM) + sizeof (WORD) + len*sizeof(WCHAR) );
     694#else
    692695          LPARAM *ptr = (LPARAM *) HEAP_xalloc( GetProcessHeap(), 0, sizeof(LPARAM) + sizeof (WORD) + len*sizeof(CHAR) );
     696#endif
    693697          if (!ptr) return -1;
    694698          *ptr++ = *plparam;  /* Store previous lParam */
     
    834838    case EM_GETLINE:
    835839        { LPARAM * ptr = (LPARAM *)lParam - 1;  /* get the old lparam */
    836 #ifdef __WIN32OS2__
    837           WORD len = *(WORD *)ptr/sizeof(WCHAR);
    838 #else
    839840          WORD len = *(WORD *)ptr;
    840 #endif
     841
    841842          lstrcpynAtoW( (LPWSTR) *ptr, (LPSTR)lParam, len );
    842843          HeapFree( GetProcessHeap(), 0, ptr );
Note: See TracChangeset for help on using the changeset viewer.