https://git.reactos.org/?p=reactos.git;a=commitdiff;h=97f4c3c3af436a87dad73…
commit 97f4c3c3af436a87dad73cec763525bf990a7d1a
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Mar 31 19:35:31 2022 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Mar 31 19:35:31 2022 +0900
[IMM32] Renaming: s/ImmLockOrLoadImeDpi/Imm32FindOrLoadImeDpi/ (#4422)
- Rename ImmLockOrLoadImeDpi as Imm32FindOrLoadImeDpi.
- Imm32FindOrLoadImeDpi --> Win: FindOrLoadImeDpi.
CORE-11700
---
dll/win32/imm32/ime.c | 17 +++++++++--------
dll/win32/imm32/imm.c | 2 +-
dll/win32/imm32/precomp.h | 2 +-
dll/win32/imm32/regword.c | 16 ++++++++--------
4 files changed, 19 insertions(+), 18 deletions(-)
diff --git a/dll/win32/imm32/ime.c b/dll/win32/imm32/ime.c
index 829cb5f1838..61113b6d83f 100644
--- a/dll/win32/imm32/ime.c
+++ b/dll/win32/imm32/ime.c
@@ -277,7 +277,8 @@ PIMEDPI APIENTRY Ime32LoadImeDpi(HKL hKL, BOOL bLock)
}
}
-PIMEDPI APIENTRY ImmLockOrLoadImeDpi(HKL hKL)
+// Win: FindOrLoadImeDpi
+PIMEDPI APIENTRY Imm32FindOrLoadImeDpi(HKL hKL)
{
PIMEDPI pImeDpi;
@@ -940,7 +941,7 @@ DWORD WINAPI ImmGetProperty(HKL hKL, DWORD fdwIndex)
if (ImeInfoEx.fLoadFlag != 2)
{
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (pImeDpi == NULL)
return FALSE;
@@ -980,7 +981,7 @@ LRESULT WINAPI ImmEscapeA(HKL hKL, HIMC hIMC, UINT uSubFunc, LPVOID
lpData)
TRACE("(%p, %p, %u, %p)\n", hKL, hIMC, uSubFunc, lpData);
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (!pImeDpi)
return 0;
@@ -1068,7 +1069,7 @@ LRESULT WINAPI ImmEscapeW(HKL hKL, HIMC hIMC, UINT uSubFunc, LPVOID
lpData)
TRACE("(%p, %p, %u, %p)\n", hKL, hIMC, uSubFunc, lpData);
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (!pImeDpi)
return 0;
@@ -1498,7 +1499,7 @@ ImmGetConversionListA(HKL hKL, HIMC hIMC, LPCSTR pSrc,
LPCANDIDATELIST lpDst,
TRACE("(%p, %p, %s, %p, %lu, 0x%lX)\n", hKL, hIMC, debugstr_a(pSrc),
lpDst, dwBufLen, uFlag);
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (pImeDpi == NULL)
return 0;
@@ -1553,7 +1554,7 @@ ImmGetConversionListW(HKL hKL, HIMC hIMC, LPCWSTR pSrc,
LPCANDIDATELIST lpDst,
TRACE("(%p, %p, %s, %p, %lu, 0x%lX)\n", hKL, hIMC, debugstr_w(pSrc),
lpDst, dwBufLen, uFlag);
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (!pImeDpi)
return 0;
@@ -1688,7 +1689,7 @@ BOOL WINAPI ImmConfigureIMEA(HKL hKL, HWND hWnd, DWORD dwMode,
LPVOID lpData)
if (!ValidateHwndNoErr(hWnd) || Imm32IsCrossProcessAccess(hWnd))
return FALSE;
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (!pImeDpi)
return FALSE;
@@ -1742,7 +1743,7 @@ BOOL WINAPI ImmConfigureIMEW(HKL hKL, HWND hWnd, DWORD dwMode,
LPVOID lpData)
if (!ValidateHwndNoErr(hWnd) || Imm32IsCrossProcessAccess(hWnd))
return FALSE;
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (!pImeDpi)
return FALSE;
diff --git a/dll/win32/imm32/imm.c b/dll/win32/imm32/imm.c
index d811cf693c1..ec939a72dda 100644
--- a/dll/win32/imm32/imm.c
+++ b/dll/win32/imm32/imm.c
@@ -819,7 +819,7 @@ LPINPUTCONTEXT APIENTRY Imm32LockIMCEx(HIMC hIMC, BOOL fSelect)
Word = LOWORD(hKL);
hNewKL = (HKL)(DWORD_PTR)MAKELONG(Word, Word);
- pImeDpi = ImmLockOrLoadImeDpi(hNewKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hNewKL);
if (pImeDpi)
{
FIXME("We have to do something here\n");
diff --git a/dll/win32/imm32/precomp.h b/dll/win32/imm32/precomp.h
index f4a5dd4c33f..e2131bcf4e4 100644
--- a/dll/win32/imm32/precomp.h
+++ b/dll/win32/imm32/precomp.h
@@ -91,7 +91,7 @@ LPWSTR APIENTRY Imm32WideFromAnsi(LPCSTR pszA);
LPSTR APIENTRY Imm32AnsiFromWide(LPCWSTR pszW);
LONG APIENTRY IchWideFromAnsi(LONG cchAnsi, LPCSTR pchAnsi, UINT uCodePage);
LONG APIENTRY IchAnsiFromWide(LONG cchWide, LPCWSTR pchWide, UINT uCodePage);
-PIMEDPI APIENTRY ImmLockOrLoadImeDpi(HKL hKL);
+PIMEDPI APIENTRY Imm32FindOrLoadImeDpi(HKL hKL);
LPINPUTCONTEXT APIENTRY Imm32LockIMCEx(HIMC hIMC, BOOL fSelect);
BOOL APIENTRY Imm32ReleaseIME(HKL hKL);
BOOL APIENTRY Imm32IsSystemJapaneseOrKorean(VOID);
diff --git a/dll/win32/imm32/regword.c b/dll/win32/imm32/regword.c
index 32148e11e6b..ecbc4cb35ef 100644
--- a/dll/win32/imm32/regword.c
+++ b/dll/win32/imm32/regword.c
@@ -102,7 +102,7 @@ ImmEnumRegisterWordA(HKL hKL, REGISTERWORDENUMPROCA lpfnEnumProc,
TRACE("(%p, %p, %s, 0x%lX, %s, %p)", hKL, lpfnEnumProc,
debugstr_a(lpszReading),
dwStyle, debugstr_a(lpszRegister), lpData);
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (!pImeDpi)
return 0;
@@ -158,7 +158,7 @@ ImmEnumRegisterWordW(HKL hKL, REGISTERWORDENUMPROCW lpfnEnumProc,
TRACE("(%p, %p, %s, 0x%lX, %s, %p)", hKL, lpfnEnumProc,
debugstr_w(lpszReading),
dwStyle, debugstr_w(lpszRegister), lpData);
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (!pImeDpi)
return 0;
@@ -212,7 +212,7 @@ UINT WINAPI ImmGetRegisterWordStyleA(HKL hKL, UINT nItem, LPSTYLEBUFA
lpStyleBuf
TRACE("(%p, %u, %p)\n", hKL, nItem, lpStyleBuf);
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (!pImeDpi)
return 0;
@@ -270,7 +270,7 @@ UINT WINAPI ImmGetRegisterWordStyleW(HKL hKL, UINT nItem, LPSTYLEBUFW
lpStyleBuf
TRACE("(%p, %u, %p)\n", hKL, nItem, lpStyleBuf);
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (!pImeDpi)
return 0;
@@ -326,7 +326,7 @@ ImmRegisterWordA(HKL hKL, LPCSTR lpszReading, DWORD dwStyle, LPCSTR
lpszRegister
TRACE("(%p, %s, 0x%lX, %s)\n", hKL, debugstr_a(lpszReading), dwStyle,
debugstr_a(lpszRegister));
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (!pImeDpi)
return FALSE;
@@ -373,7 +373,7 @@ ImmRegisterWordW(HKL hKL, LPCWSTR lpszReading, DWORD dwStyle, LPCWSTR
lpszRegist
TRACE("(%p, %s, 0x%lX, %s)\n", hKL, debugstr_w(lpszReading), dwStyle,
debugstr_w(lpszRegister));
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (!pImeDpi)
return FALSE;
@@ -420,7 +420,7 @@ ImmUnregisterWordA(HKL hKL, LPCSTR lpszReading, DWORD dwStyle, LPCSTR
lpszUnregi
TRACE("(%p, %s, 0x%lX, %s)\n", hKL, debugstr_a(lpszReading), dwStyle,
debugstr_a(lpszUnregister));
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (pImeDpi == NULL)
return FALSE;
@@ -467,7 +467,7 @@ ImmUnregisterWordW(HKL hKL, LPCWSTR lpszReading, DWORD dwStyle,
LPCWSTR lpszUnre
TRACE("(%p, %s, 0x%lX, %s)\n", hKL, debugstr_w(lpszReading), dwStyle,
debugstr_w(lpszUnregister));
- pImeDpi = ImmLockOrLoadImeDpi(hKL);
+ pImeDpi = Imm32FindOrLoadImeDpi(hKL);
if (!pImeDpi)
return FALSE;