regedit: Display data for all values in the GUI.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2017-06-21 12:19:27 +00:00 committed by Alexandre Julliard
parent 878a0a4e14
commit 4a70d33552
1 changed files with 5 additions and 11 deletions

View File

@ -129,8 +129,13 @@ void format_value_data(HWND hwndLV, int index, DWORD type, void *data, DWORD siz
ListView_SetItemTextW(hwndLV, index, 2, buf); ListView_SetItemTextW(hwndLV, index, 2, buf);
break; break;
} }
case REG_MULTI_SZ:
MakeMULTISZDisplayable(data);
ListView_SetItemTextW(hwndLV, index, 2, data);
break;
case REG_BINARY: case REG_BINARY:
case REG_NONE: case REG_NONE:
default:
{ {
unsigned int i; unsigned int i;
BYTE *pData = data; BYTE *pData = data;
@ -143,17 +148,6 @@ void format_value_data(HWND hwndLV, int index, DWORD type, void *data, DWORD siz
HeapFree(GetProcessHeap(), 0, strBinary); HeapFree(GetProcessHeap(), 0, strBinary);
break; break;
} }
case REG_MULTI_SZ:
MakeMULTISZDisplayable(data);
ListView_SetItemTextW(hwndLV, index, 2, data);
break;
default:
{
WCHAR szText[128];
LoadStringW(hInst, IDS_REGISTRY_VALUE_CANT_DISPLAY, szText, COUNT_OF(szText));
ListView_SetItemTextW(hwndLV, index, 2, szText);
break;
}
} }
} }