regedit: Use W version of TreeView_GetItem.

This commit is contained in:
Lei Zhang 2008-10-02 01:30:22 -07:00 committed by Alexandre Julliard
parent 8595ffadd9
commit 4389066754
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ static BOOL get_item_path(HWND hwndTV, HTREEITEM hItem, HKEY* phKey, LPWSTR* pKe
item.mask = TVIF_PARAM;
item.hItem = hItem;
if (!TreeView_GetItem(hwndTV, &item)) return FALSE;
if (!TreeView_GetItemW(hwndTV, &item)) return FALSE;
if (item.lParam) {
/* found root key with valid key value */
@ -216,7 +216,7 @@ static BOOL match_item(HWND hwndTV, HTREEITEM hItem, LPCWSTR sstring, int mode,
item.hItem = hItem;
item.pszText = keyname;
item.cchTextMax = KEY_MAX_LEN;
if (!TreeView_GetItem(hwndTV, &item)) return FALSE;
if (!TreeView_GetItemW(hwndTV, &item)) return FALSE;
if ((mode & SEARCH_KEYS) && match_string(keyname, sstring, mode)) {
*row = -1;
return TRUE;