Alexander Nicolaysen Sørnes : regedit: Fix some references to TCHARs.
Alexandre Julliard
julliard at winehq.org
Wed Sep 3 07:43:42 CDT 2008
Module: wine
Branch: master
Commit: ba093c6dc0b181c7be6f5bcd468c4cb8ae53d423
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ba093c6dc0b181c7be6f5bcd468c4cb8ae53d423
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Tue Sep 2 18:41:42 2008 +0200
regedit: Fix some references to TCHARs.
---
programs/regedit/childwnd.c | 4 ++--
programs/regedit/edit.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c
index 9879c95..11a8d2a 100644
--- a/programs/regedit/childwnd.c
+++ b/programs/regedit/childwnd.c
@@ -123,7 +123,7 @@ static LPWSTR CombinePaths(LPCWSTR pPaths[], int nPaths) {
if (!*combined)
lstrcpyW(combined, pPaths[i]);
else {
- combined[pos++] = (TCHAR)'\\';
+ combined[pos++] = '\\';
lstrcpyW(combined+pos, pPaths[i]);
}
pos += llen;
@@ -144,7 +144,7 @@ static LPWSTR GetPathRoot(HWND hwndTV, HTREEITEM hItem, BOOL bFull) {
if (hRootKey)
parts[1] = GetRootKeyNameW(hRootKey);
if (bFull) {
- DWORD dwSize = sizeof(text)/sizeof(TCHAR);
+ DWORD dwSize = sizeof(text)/sizeof(WCHAR);
GetComputerNameW(text, &dwSize);
parts[0] = text;
}
diff --git a/programs/regedit/edit.c b/programs/regedit/edit.c
index 15dc57a..992caee 100644
--- a/programs/regedit/edit.c
+++ b/programs/regedit/edit.c
@@ -379,7 +379,7 @@ BOOL ModifyValue(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR valueName)
HeapFree( GetProcessHeap(), 0, stringValueData);
stringValueData = tmpValueData;
- lRet = RegSetValueExW(hKey, valueName, 0, type, (LPBYTE)stringValueData, j * sizeof(TCHAR));
+ lRet = RegSetValueExW(hKey, valueName, 0, type, (LPBYTE)stringValueData, j * sizeof(WCHAR));
if (lRet == ERROR_SUCCESS) result = TRUE;
else error_code_messagebox(hwnd, lRet);
}
More information about the wine-cvs
mailing list