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/status.c

    r41 r73  
    369369        result |= (part->style << 16);
    370370        if (lParam && LOWORD(result))
    371 //          lstrcpyWtoA ((LPSTR)lParam, part->text);
    372           strcpy((LPSTR)lParam, (char*)part->text);
     371            lstrcpyWtoA((LPSTR)lParam, part->text);
    373372    }
    374373    return result;
     
    660659        if (text && (len = lstrlenA(text))) {
    661660            part->text = COMCTL32_Alloc ((len+1)*sizeof(WCHAR));
    662 //          lstrcpyAtoW (part->text, text);
    663             strcpy((char*)part->text, text);
     661            lstrcpyAtoW (part->text, text);
    664662        }
    665663    }
     
    841839        if ((len = lstrlenA ((LPCSTR)lpCreate->lpszName))) {
    842840            self->parts[0].text = COMCTL32_Alloc ((len + 1)*sizeof(WCHAR));
    843 //          lstrcpyAtoW (self->parts[0].text, (LPCSTR)lpCreate->lpszName);
    844             strcpy((char*)self->parts[0].text, (LPCSTR)lpCreate->lpszName);
     841            lstrcpyAtoW (self->parts[0].text, (LPCSTR)lpCreate->lpszName);
    845842        }
    846843    }
     
    938935            lstrcpyW ((LPWSTR)lParam, infoPtr->parts[0].text);
    939936        else
    940 //          lstrcpyWtoA ((LPSTR)lParam, infoPtr->parts[0].text);
    941             strcpy((LPSTR)lParam, (char*)infoPtr->parts[0].text);
     937            lstrcpyWtoA ((LPSTR)lParam, infoPtr->parts[0].text);
    942938        return len;
    943939    }
     
    10551051        if (lParam && (len = lstrlenA((LPCSTR)lParam))) {
    10561052            part->text = COMCTL32_Alloc ((len+1)*sizeof(WCHAR));
    1057 //          lstrcpyAtoW (part->text, (LPCSTR)lParam);
    1058             strcpy((char*)part->text, (LPCSTR)lParam);
     1053            lstrcpyAtoW (part->text, (LPCSTR)lParam);
    10591054        }
    10601055    }
Note: See TracChangeset for help on using the changeset viewer.