Mikhail Maroukhine : imm32: Fix compiler warnings with flag -Wcast-qual.
Module: wine Branch: master Commit: 42e897f22894a2f8527ffe89641f816f603f91ff URL: http://source.winehq.org/git/wine.git/?a=commit;h=42e897f22894a2f8527ffe8964... Author: Mikhail Maroukhine <mikolg(a)yandex.ru> Date: Sat Mar 27 02:53:36 2010 +0600 imm32: Fix compiler warnings with flag -Wcast-qual. --- dlls/imm32/imm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c index 6f97448..2898e5e 100644 --- a/dlls/imm32/imm.c +++ b/dlls/imm32/imm.c @@ -1843,10 +1843,10 @@ HKL WINAPI ImmInstallIMEW( 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)); 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)); RegCloseKey(hkey); return hkl;
participants (1)
-
Alexandre Julliard