regedit: Fix some references to TCHARs.
This commit is contained in:
parent
501b1e0a49
commit
ba093c6dc0
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue