Fix file size in property dialog by using _stprintf() instead of

wsprintf().
This commit is contained in:
Martin Fuchs 2005-06-12 10:43:40 +00:00 committed by Alexandre Julliard
parent b16f330197
commit b44c2a3d8c
1 changed files with 3 additions and 3 deletions

View File

@ -1848,8 +1848,8 @@ static INT_PTR CALLBACK PropertiesDialogDlgProc(HWND hwnd, UINT nmsg, WPARAM wpa
SetWindowText(GetDlgItem(hwnd, IDC_STATIC_PROP_LASTCHANGE), b1);
size = ((ULONGLONG)pWFD->nFileSizeHigh << 32) | pWFD->nFileSizeLow;
wsprintf(b1, sLongNumFmt, size);
wsprintf(b2, sByteFmt, b1);
_stprintf(b1, sLongNumFmt, size);
_stprintf(b2, sByteFmt, b1);
SetWindowText(GetDlgItem(hwnd, IDC_STATIC_PROP_SIZE), b2);
SetWindowText(GetDlgItem(hwnd, IDC_STATIC_PROP_FILENAME), pWFD->cFileName);
@ -3250,7 +3250,7 @@ static void draw_item(Pane* pane, LPDRAWITEMSTRUCT dis, Entry* entry, int calcWi
}
if (visible_cols & COL_LINKS) {
wsprintf(buffer, sNumFmt, entry->bhfi.nNumberOfLinks);
_stprintf(buffer, sNumFmt, entry->bhfi.nNumberOfLinks);
if (calcWidthCol == -1)
output_text(pane, dis, col, buffer, DT_CENTER);