Module: wine Branch: master Commit: 602e0df9f62be3e119a521962f930af2cc904776 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=602e0df9f62be3e119a52196... Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Wed Aug 16 20:14:08 2006 +0100 regedit: Write-strings warnings fix. --- programs/regedit/childwnd.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c index c284d88..49adfd1 100644 --- a/programs/regedit/childwnd.c +++ b/programs/regedit/childwnd.c @@ -128,9 +128,10 @@ static LPTSTR GetPathRoot(HWND hwndTV, H } LPTSTR GetItemFullPath(HWND hwndTV, HTREEITEM hItem, BOOL bFull) { - LPTSTR parts[2] = {_T(""), _T("")}; - HKEY hRootKey = NULL; + LPTSTR parts[2]; LPTSTR ret; + HKEY hRootKey = NULL; + parts[0] = GetPathRoot(hwndTV, hItem, bFull); parts[1] = GetItemPath(hwndTV, hItem, &hRootKey); ret = CombinePaths((LPCTSTR *)parts, 2); @@ -139,7 +140,9 @@ LPTSTR GetItemFullPath(HWND hwndTV, HTRE } LPTSTR GetPathFullPath(HWND hwndTV, LPTSTR path) { - LPTSTR parts[2] = {_T(""), _T("")}, ret; + LPTSTR parts[2]; + LPTSTR ret; + parts[0] = GetPathRoot(hwndTV, 0, TRUE); parts[1] = path; ret = CombinePaths((LPCTSTR *)parts, 2);