From d4bd38df224f1053ee401e79d123c531107ae1fb Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 30 Oct 2010 17:41:51 +0000 Subject: [PATCH] [REGEDIT] - Fix a bug causing registry entries with names containing a backslash to be displayed incorrectly svn path=/trunk/; revision=49364 --- reactos/base/applications/regedit/listview.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/reactos/base/applications/regedit/listview.c b/reactos/base/applications/regedit/listview.c index d7eac5974d2..fcf9f52c8fe 100644 --- a/reactos/base/applications/regedit/listview.c +++ b/reactos/base/applications/regedit/listview.c @@ -556,18 +556,12 @@ BOOL RefreshListView(HWND hwndLV, HKEY hKey, LPCTSTR keyPath) /* } */ /* dwValSize = max_val_size; */ while (RegEnumValue(hNewKey, dwIndex, ValName, &dwValNameLen, NULL, &dwValType, ValBuf, &dwValSize) == ERROR_SUCCESS) { - /* Remove unwanted path from key name */ - TCHAR *pLastBl = _tcsrchr(ValName, TEXT('\\')); - if (pLastBl != NULL) - ++pLastBl; - else - pLastBl = ValName; /* Add a terminating 0 character. Usually this is only necessary for strings. */ ValBuf[dwValSize] = 0; #ifdef UNICODE ValBuf[dwValSize + 1] = 0; #endif - AddEntryToList(hwndLV, pLastBl, dwValType, ValBuf, dwValSize, -1, TRUE); + AddEntryToList(hwndLV, ValName, dwValType, ValBuf, dwValSize, -1, TRUE); dwValNameLen = max_val_name_len; dwValSize = max_val_size; dwValType = 0L;