regedit: Write-strings warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Sat Jul 15 17:48:34 CDT 2006
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-07-15 23:30:54.000000000 +0100
@@ -95,7 +95,7 @@
*combined = '\0';
for (i=0, pos=0; i<nPaths; i++) {
if (pPaths[i] && *pPaths[i]) {
- int llen = _tcslen(pPaths[i]);
+ size_t llen = _tcslen(pPaths[i]);
if (!*combined)
_tcscpy(combined, pPaths[i]);
else {
@@ -128,9 +128,8 @@
}
LPTSTR GetItemFullPath(HWND hwndTV, HTREEITEM hItem, BOOL bFull) {
- LPTSTR parts[2] = {_T(""), _T("")};
+ LPTSTR parts[2], ret;
HKEY hRootKey = NULL;
- LPTSTR ret;
parts[0] = GetPathRoot(hwndTV, hItem, bFull);
parts[1] = GetItemPath(hwndTV, hItem, &hRootKey);
ret = CombinePaths((LPCTSTR *)parts, 2);
@@ -138,8 +137,8 @@
return ret;
}
-LPTSTR GetPathFullPath(HWND hwndTV, LPTSTR path) {
- LPTSTR parts[2] = {_T(""), _T("")}, ret;
+static LPTSTR GetPathFullPath(HWND hwndTV, LPTSTR path) {
+ LPTSTR parts[2], ret;
parts[0] = GetPathRoot(hwndTV, 0, TRUE);
parts[1] = path;
ret = CombinePaths((LPCTSTR *)parts, 2);
More information about the wine-patches
mailing list