Author: cgutman
Date: Sat Oct 30 17:41:51 2010
New Revision: 49364
URL:
http://svn.reactos.org/svn/reactos?rev=49364&view=rev
Log:
[REGEDIT]
- Fix a bug causing registry entries with names containing a backslash to be displayed
incorrectly
Modified:
trunk/reactos/base/applications/regedit/listview.c
Modified: trunk/reactos/base/applications/regedit/listview.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/listview.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/listview.c [iso-8859-1] Sat Oct 30 17:41:51
2010
@@ -556,18 +556,12 @@
/* } */
/* 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;