Changeset 9758 for trunk/src


Ignore:
Timestamp:
Feb 6, 2003, 1:03:52 PM (23 years ago)
Author:
sandervl
Message:

DT: Edit control: fixed heap corruption in undo buffer

File:
1 edited

Legend:

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

    r9524 r9758  
    19031903        alloc_size = ROUND_TO_GROW((size + 1) * sizeof(WCHAR));
    19041904        if ((es->undo_text = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, es->undo_text, alloc_size))) {
     1905#ifdef __WIN32OS2__
     1906                es->undo_buffer_size = alloc_size/sizeof(WCHAR) - 1;
     1907#else
    19051908                es->undo_buffer_size = alloc_size/sizeof(WCHAR);
     1909#endif
    19061910                return TRUE;
    19071911        }
Note: See TracChangeset for help on using the changeset viewer.