Commit ba093c6d authored by Alexander Nicolaysen Sørnes's avatar Alexander Nicolaysen Sørnes Committed by Alexandre Julliard

regedit: Fix some references to TCHARs.

parent 501b1e0a
...@@ -123,7 +123,7 @@ static LPWSTR CombinePaths(LPCWSTR pPaths[], int nPaths) { ...@@ -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) { ...@@ -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) ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment