Commit 510b6d3b authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

regedit: Write-strings warning fix.

parent 3588067b
...@@ -158,14 +158,14 @@ static void AddEntryToList(HWND hwndLV, LPTSTR Name, DWORD dwValType, ...@@ -158,14 +158,14 @@ static void AddEntryToList(HWND hwndLV, LPTSTR Name, DWORD dwValType,
index = ListView_InsertItem(hwndLV, &item); index = ListView_InsertItem(hwndLV, &item);
if (index != -1) { if (index != -1) {
/* LPTSTR pszText = NULL; */ /* 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) { switch (dwValType) {
case REG_SZ: case REG_SZ:
case REG_EXPAND_SZ: case REG_EXPAND_SZ:
if (ValBuf) { if (ValBuf) {
ListView_SetItemText(hwndLV, index, 2, ValBuf); ListView_SetItemText(hwndLV, index, 2, ValBuf);
} else { } 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); ListView_SetItemText(hwndLV, index, 2, textT);
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment