Ignore:
Timestamp:
Oct 23, 2000, 9:35:11 PM (25 years ago)
Author:
sandervl
Message:

lstrcpynAtoW/WtoA fixes (Wine depends on 0 terminating of these functions) + console changes for methods that depended on the old behaviour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/conbuffer.cpp

    r4502 r4525  
    1 /* $Id: conbuffer.cpp,v 1.13 2000-10-20 11:46:44 sandervl Exp $ */
     1/* $Id: conbuffer.cpp,v 1.14 2000-10-23 19:35:09 sandervl Exp $ */
    22
    33/*
     
    25382538
    25392539  /* Ascii -> unicode translation */
    2540   pszAscii = (LPSTR)HEAP_malloc(cchToWrite);
     2540  pszAscii = (LPSTR)HEAP_malloc(cchToWrite+1);
    25412541  if (pszAscii == NULL)
    25422542     return ERROR_NOT_ENOUGH_MEMORY;
    25432543
    2544   lstrcpynWtoA(pszAscii, (LPWSTR)lpvBuffer, cchToWrite);
     2544  lstrcpynWtoA(pszAscii, (LPWSTR)lpvBuffer, cchToWrite+1);
    25452545
    25462546  /* simply forward the request to that routine */
Note: See TracChangeset for help on using the changeset viewer.