regedit: Write-strings warning fix.

This commit is contained in:
Andrew Talbot 2006-07-26 19:32:29 +01:00 committed by Alexandre Julliard
parent 3588067b90
commit 510b6d3b47
1 changed files with 2 additions and 2 deletions

View File

@ -158,14 +158,14 @@ static void AddEntryToList(HWND hwndLV, LPTSTR Name, DWORD dwValType,
index = ListView_InsertItem(hwndLV, &item);
if (index != -1) {
/* LPTSTR pszText = NULL; */
LPTSTR pszText = _T("(cannot display value)");
static TCHAR pszText[] = {'(','c','a','n','n','o','t',' ','d','i','s','p','l','a','y',' ','v','a','l','u','e',')',0};
switch (dwValType) {
case REG_SZ:
case REG_EXPAND_SZ:
if (ValBuf) {
ListView_SetItemText(hwndLV, index, 2, ValBuf);
} else {
TCHAR textT[] = {'(','n','o','t',' ','s','e','t',')',0};
static TCHAR textT[] = {'(','n','o','t',' ','s','e','t',')',0};
ListView_SetItemText(hwndLV, index, 2, textT);
}
break;