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)
|
if (!*combined)
|
||||||
lstrcpyW(combined, pPaths[i]);
|
lstrcpyW(combined, pPaths[i]);
|
||||||
else {
|
else {
|
||||||
combined[pos++] = (TCHAR)'\\';
|
combined[pos++] = '\\';
|
||||||
lstrcpyW(combined+pos, pPaths[i]);
|
lstrcpyW(combined+pos, pPaths[i]);
|
||||||
}
|
}
|
||||||
pos += llen;
|
pos += llen;
|
||||||
|
@ -144,7 +144,7 @@ static LPWSTR GetPathRoot(HWND hwndTV, HTREEITEM hItem, BOOL bFull) {
|
||||||
if (hRootKey)
|
if (hRootKey)
|
||||||
parts[1] = GetRootKeyNameW(hRootKey);
|
parts[1] = GetRootKeyNameW(hRootKey);
|
||||||
if (bFull) {
|
if (bFull) {
|
||||||
DWORD dwSize = sizeof(text)/sizeof(TCHAR);
|
DWORD dwSize = sizeof(text)/sizeof(WCHAR);
|
||||||
GetComputerNameW(text, &dwSize);
|
GetComputerNameW(text, &dwSize);
|
||||||
parts[0] = text;
|
parts[0] = text;
|
||||||
}
|
}
|
||||||
|
|
|
@ -379,7 +379,7 @@ BOOL ModifyValue(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR valueName)
|
||||||
HeapFree( GetProcessHeap(), 0, stringValueData);
|
HeapFree( GetProcessHeap(), 0, stringValueData);
|
||||||
stringValueData = tmpValueData;
|
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;
|
if (lRet == ERROR_SUCCESS) result = TRUE;
|
||||||
else error_code_messagebox(hwnd, lRet);
|
else error_code_messagebox(hwnd, lRet);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue