regedit: Fix some references to TCHARs.

This commit is contained in:
Alexander Nicolaysen Sørnes 2008-09-02 18:41:42 +02:00 committed by Alexandre Julliard
parent 501b1e0a49
commit ba093c6dc0
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);
}