Hugh McMaster : regedit: Display data for all values in the GUI.

Alexandre Julliard julliard at winehq.org
Wed Jun 21 16:43:44 CDT 2017


Module: wine
Branch: master
Commit: 4a70d335528e390c50206478eba16052c17b566c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4a70d335528e390c50206478eba16052c17b566c

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Wed Jun 21 12:19:27 2017 +0000

regedit: Display data for all values in the GUI.

Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/regedit/listview.c | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/programs/regedit/listview.c b/programs/regedit/listview.c
index a3bc72f..b758564 100644
--- a/programs/regedit/listview.c
+++ b/programs/regedit/listview.c
@@ -129,8 +129,13 @@ void format_value_data(HWND hwndLV, int index, DWORD type, void *data, DWORD siz
             ListView_SetItemTextW(hwndLV, index, 2, buf);
             break;
         }
+        case REG_MULTI_SZ:
+            MakeMULTISZDisplayable(data);
+            ListView_SetItemTextW(hwndLV, index, 2, data);
+            break;
         case REG_BINARY:
         case REG_NONE:
+        default:
         {
             unsigned int i;
             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);
             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;
-        }
     }
 }
 




More information about the wine-cvs mailing list