regedit: Write-strings warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Wed Aug 16 14:14:08 CDT 2006
I note that the casts *are* required.
---
Changelog:
regedit: Write-strings warnings fix.
diff -urN a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c
--- a/programs/regedit/childwnd.c 2006-06-29 14:33:28.000000000 +0100
+++ b/programs/regedit/childwnd.c 2006-08-16 19:58:02.000000000 +0100
@@ -128,9 +128,10 @@
}
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 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);
More information about the wine-patches
mailing list