Changeset 9524 for trunk/src/user32/edit.c
- Timestamp:
- Dec 18, 2002, 2:10:08 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/edit.c
r9523 r9524 36 36 #ifndef __WIN32OS2__ 37 37 DECLARE_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 40 42 #define BUFLIMIT_MULTI 65534 /* maximum buffer size (not including '\0') 41 43 FIXME: BTW, new specs say 65535 (do you dare ???) */ 42 44 #define BUFLIMIT_SINGLE 32766 /* maximum buffer size (not including '\0') */ 45 #endif 46 43 47 #define GROWLENGTH 32 /* buffers granularity in bytes: must be power of 2 */ 44 48 #define ROUND_TO_GROW(size) (((size) + (GROWLENGTH - 1)) & ~(GROWLENGTH - 1)) … … 1840 1844 if (size <= es->buffer_size) 1841 1845 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 1842 1852 if (size > es->buffer_limit) { 1843 1853 EDIT_NOTIFY_PARENT(hwnd, es, EN_MAXTEXT, "EN_MAXTEXT"); … … 1846 1856 if (size > es->buffer_limit) 1847 1857 size = es->buffer_limit; 1858 #endif 1848 1859 1849 1860 TRACE("trying to ReAlloc to %d+1 characters\n", size);
Note:
See TracChangeset
for help on using the changeset viewer.