imm32: Fix compiler warnings with flag -Wcast-qual.
This commit is contained in:
parent
1d9e321751
commit
42e897f228
|
@ -1843,10 +1843,10 @@ HKL WINAPI ImmInstallIMEW(
|
||||||
|
|
||||||
if (rc == ERROR_SUCCESS)
|
if (rc == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
rc = RegSetValueExW(hkey, szImeFileW, 0, REG_SZ, (LPBYTE)lpszIMEFileName,
|
rc = RegSetValueExW(hkey, szImeFileW, 0, REG_SZ, (const BYTE*)lpszIMEFileName,
|
||||||
(lstrlenW(lpszIMEFileName) + 1) * sizeof(WCHAR));
|
(lstrlenW(lpszIMEFileName) + 1) * sizeof(WCHAR));
|
||||||
if (rc == ERROR_SUCCESS)
|
if (rc == ERROR_SUCCESS)
|
||||||
rc = RegSetValueExW(hkey, szLayoutTextW, 0, REG_SZ, (LPBYTE)lpszLayoutText,
|
rc = RegSetValueExW(hkey, szLayoutTextW, 0, REG_SZ, (const BYTE*)lpszLayoutText,
|
||||||
(lstrlenW(lpszLayoutText) + 1) * sizeof(WCHAR));
|
(lstrlenW(lpszLayoutText) + 1) * sizeof(WCHAR));
|
||||||
RegCloseKey(hkey);
|
RegCloseKey(hkey);
|
||||||
return hkl;
|
return hkl;
|
||||||
|
|
Loading…
Reference in New Issue