mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
[REGEDIT]
- Fix a bug causing registry entries with names containing a backslash to be displayed incorrectly svn path=/trunk/; revision=49364
This commit is contained in:
parent
a4b48e3576
commit
d4bd38df22
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue