Ignore:
Timestamp:
Jun 9, 1999, 3:54:51 PM (26 years ago)
Author:
achimha
Message:

Fixed Unicode<->Ascii issues partially

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/rebar.c

    r60 r73  
    2626#include "commctrl.h"
    2727#include "rebar.h"
     28#include "comctl32.h"
    2829
    2930
     
    637638    if ((lprbbi->fMask & RBBIM_TEXT) &&
    638639        (lprbbi->lpText) && (lpBand->lpText)) {
    639 //          lstrcpynWtoA (lprbbi->lpText, lpBand->lpText, lprbbi->cch);
    640             strncpy(lprbbi->lpText, lpBand->lpText, lprbbi->cch);
     640            lstrcpynWtoA (lprbbi->lpText, lpBand->lpText, lprbbi->cch);
    641641    }
    642642
     
    10011001        if (len > 0) {
    10021002            lpBand->lpText = (LPWSTR)COMCTL32_Alloc ((len + 1)*sizeof(WCHAR));
    1003 //          lstrcpyAtoW (lpBand->lpText, lprbbi->lpText);
    1004             strcpy(lpBand->lpText, lprbbi->lpText);
     1003            lstrcpyAtoW (lpBand->lpText, lprbbi->lpText);
    10051004        }
    10061005    }
     
    12671266            INT len = lstrlenA (lprbbi->lpText);
    12681267            lpBand->lpText = (LPWSTR)COMCTL32_Alloc ((len + 1)*sizeof(WCHAR));
    1269 //          lstrcpyAtoW (lpBand->lpText, lprbbi->lpText);
    1270             strcpy(lpBand->lpText, lprbbi->lpText);
     1268            lstrcpyAtoW (lpBand->lpText, lprbbi->lpText);
    12711269        }
    12721270    }
Note: See TracChangeset for help on using the changeset viewer.