Ignore:
Timestamp:
Dec 5, 1999, 11:02:31 AM (26 years ago)
Author:
sandervl
Message:

Changed definition of lstrcpy(n)AtoW/WtoA + CreateProcessA logging change

File:
1 edited

Legend:

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

    r1670 r1975  
    1 /* $Id: heapstring.cpp,v 1.19 1999-11-09 19:22:32 sandervl Exp $ */
     1/* $Id: heapstring.cpp,v 1.20 1999-12-05 10:02:30 sandervl Exp $ */
    22
    33/*
     
    509509
    510510int WIN32API lstrcpynWtoA(LPSTR  astring,
    511                           LPWSTR ustring,
     511                          LPCWSTR ustring,
    512512                          int    unilen)
    513513{
     
    588588// @@@PH 0 termination is NOT necessarily included !
    589589int WIN32API lstrcpynAtoW(LPWSTR unicode,
    590                           LPSTR  ascii,
     590                          LPCSTR  ascii,
    591591                          int    asciilen)
    592592{
     
    623623    }
    624624
    625     in_buf        = ascii;
     625    in_buf        = (LPSTR)ascii;
    626626
    627627    //@@@PH what's this?
     
    679679 *****************************************************************************/
    680680
    681 LPSTR WIN32API lstrcpyWtoA(LPSTR ascii, LPWSTR unicode)
     681LPSTR WIN32API lstrcpyWtoA(LPSTR ascii, LPCWSTR unicode)
    682682{
    683683  //@@@PH huh? wuz dat?
    684684  if (unicode == NULL)
    685685  {
    686     if (unicode != NULL) unicode[0] = 0; //CB: set at least end
     686    if (unicode != NULL) ((LPWSTR)unicode)[0] = 0; //CB: set at least end
    687687    return NULL;
    688688  }
     
    712712 *****************************************************************************/
    713713
    714 LPWSTR WIN32API lstrcpyAtoW(LPWSTR unicode, LPSTR ascii)
     714LPWSTR WIN32API lstrcpyAtoW(LPWSTR unicode, LPCSTR ascii)
    715715{
    716716  /* achimha for security, strlen might trap if garbage in */
Note: See TracChangeset for help on using the changeset viewer.