Commit in reactos/subsys/system/regedit on MAIN
listview.c+241.8 -> 1.9
display REG_NONE and REG_MULTI_SZ values

reactos/subsys/system/regedit
listview.c 1.8 -> 1.9
diff -u -r1.8 -r1.9
--- listview.c	6 Feb 2004 15:26:41 -0000	1.8
+++ listview.c	19 Jun 2004 23:12:58 -0000	1.9
@@ -169,6 +169,29 @@
               ListView_SetItemText(hwndLV, index, 2, ValBuf);
             }
             break;
+        case REG_MULTI_SZ:
+            {
+              LPTSTR src, str, cursrc;
+              if(dwCount >= 2)
+              {
+	          src = (LPTSTR)ValBuf;
+		  str = HeapAlloc(GetProcessHeap(), 0, dwCount);
+                  if(str != NULL)
+                  {
+                      *str = _T('\0');
+		      /* concatenate all srings */
+                      while(*src != _T('\0'))
+                      {
+                          _tcscat(str, _T(" "));
+			  _tcscat(str, src);
+			  src += _tcslen(src) + 1;
+                      }
+                      ListView_SetItemText(hwndLV, index, 2, str);
+		      HeapFree(GetProcessHeap(), 0, str);
+                  }
+              }
+            }
+            break;
         case REG_DWORD: {
                 TCHAR buf[64];
                 wsprintf(buf, _T("0x%08X (%d)"), *(DWORD*)ValBuf, *(DWORD*)ValBuf);
@@ -176,6 +199,7 @@
             }
             /*            lpsRes = convertHexToDWORDStr(lpbData, dwLen); */
             break;
+        case REG_NONE:
         case REG_BINARY: {
                 unsigned int i;
                 LPBYTE pData = (LPBYTE)ValBuf;
CVSspam 0.2.8