Changeset 5609 for trunk/src


Ignore:
Timestamp:
Apr 27, 2001, 9:30:54 PM (24 years ago)
Author:
sandervl
Message:

unicode translation bugfixes; limit string length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/text.cpp

    r5595 r5609  
    1 /* $Id: text.cpp,v 1.18 2001-04-26 17:01:08 sandervl Exp $ */
     1/* $Id: text.cpp,v 1.19 2001-04-27 19:30:54 sandervl Exp $ */
    22
    33/*
     
    459459  else {
    460460     astring = (char *)HEAP_malloc(cchText+1);
    461      UnicodeToAscii((LPWSTR)lpchText, astring);
     461     UnicodeToAsciiN((LPWSTR)lpchText, astring, cchText+1);
    462462     astring[cchText] = 0;
    463463  }
     
    526526  else {
    527527     astring = (char *)HEAP_malloc(nCount+1);
    528      UnicodeToAscii((LPWSTR)lpString, astring);
     528     UnicodeToAsciiN((LPWSTR)lpString, astring, nCount+1);
    529529     astring[nCount] = 0;
    530530  }
     
    614614  else {
    615615     astring = (char *)HEAP_malloc(nCount+1);
    616      UnicodeToAscii((LPWSTR)lpString, astring);
     616     UnicodeToAsciiN((LPWSTR)lpString, astring, nCount+1);
    617617     astring[nCount] = 0;
    618618  }
     
    786786  if(cbCount) {
    787787     astring = (char *)HEAP_malloc(cbCount+1);
    788      UnicodeToAscii((LPWSTR)lpszString, astring);
     788     UnicodeToAsciiN((LPWSTR)lpszString, astring, cbCount+1);
    789789     astring[cbCount] = 0;
    790790  }
Note: See TracChangeset for help on using the changeset viewer.