Ignore:
Timestamp:
Dec 18, 2002, 2:10:08 PM (23 years ago)
Author:
sandervl
Message:

Merged our changes/fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/edit.c

    r9523 r9524  
    3636#ifndef __WIN32OS2__
    3737DECLARE_DEBUG_CHANNEL(relay);
    38 #endif
    39 
     38
     39#define BUFLIMIT_MULTI          0x7FFFFFF       /* maximum buffer size (not including '\0')
     40#define BUFLIMIT_SINGLE         0x7FFFFFF       /* maximum buffer size (not including '\0') */
     41#else
    4042#define BUFLIMIT_MULTI          65534   /* maximum buffer size (not including '\0')
    4143                                           FIXME: BTW, new specs say 65535 (do you dare ???) */
    4244#define BUFLIMIT_SINGLE         32766   /* maximum buffer size (not including '\0') */
     45#endif
     46
    4347#define GROWLENGTH              32      /* buffers granularity in bytes: must be power of 2 */
    4448#define ROUND_TO_GROW(size)     (((size) + (GROWLENGTH - 1)) & ~(GROWLENGTH - 1))
     
    18401844        if (size <= es->buffer_size)
    18411845                return TRUE;
     1846#ifndef __WIN32OS2__
     1847//SvL: EM_SETTEXTLIMIT has no effect in
     1848//     NT4, SP6 (EM_GETTEXTLIMIT only returns that value).
     1849//     Limits are simply ignored, no EN_MAXTEXT notification is ever sent.
     1850//     (fixes license edit control in Microsoft Visual C++ 4.2 install)
     1851
    18421852        if (size > es->buffer_limit) {
    18431853                EDIT_NOTIFY_PARENT(hwnd, es, EN_MAXTEXT, "EN_MAXTEXT");
     
    18461856        if (size > es->buffer_limit)
    18471857                size = es->buffer_limit;
     1858#endif
    18481859
    18491860        TRACE("trying to ReAlloc to %d+1 characters\n", size);
Note: See TracChangeset for help on using the changeset viewer.