From faf9c55eb8fe296b508476a20f1899ce4c645409 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 27 Aug 2008 15:00:53 -0700 Subject: [PATCH] regedit: Fix typo in commit c6d01ac847edc2ad02ef02c7a0ead7a833539c3c. --- programs/regedit/listview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/regedit/listview.c b/programs/regedit/listview.c index 1091d8d3cf9..3186a370543 100644 --- a/programs/regedit/listview.c +++ b/programs/regedit/listview.c @@ -549,7 +549,7 @@ BOOL RefreshListView(HWND hwndLV, HKEY hKeyRoot, LPCTSTR keyPath, LPCTSTR highli errCode = RegEnumValueW(hKey, index, valName, &valNameLen, NULL, &valType, valBuf, &valSize); if (errCode != ERROR_SUCCESS) goto done; valBuf[valSize] = 0; - if (valName && highlightValueW && lstrcmpW(valName, highlightValueW)) + if (valName && highlightValueW && !lstrcmpW(valName, highlightValueW)) bSelected = TRUE; AddEntryToList(hwndLV, valName[0] ? valName : NULL, valType, valBuf, valSize, bSelected); }