https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9455defbd36e5590c395f…
commit 9455defbd36e5590c395f080e163c71f4be7d3e0
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sat Oct 23 12:13:19 2021 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Sat Oct 23 12:13:19 2021 +0900
[IMM32] Remove old code of Imm32StrToUInt and Imm32UIntToStr
CORE-11700
---
dll/win32/imm32/utils.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/dll/win32/imm32/utils.c b/dll/win32/imm32/utils.c
index 3cf198096a6..e035fec3ed2 100644
--- a/dll/win32/imm32/utils.c
+++ b/dll/win32/imm32/utils.c
@@ -19,7 +19,6 @@ HANDLE g_hImm32Heap = NULL;
HRESULT APIENTRY
Imm32StrToUInt(LPCWSTR pszText, LPDWORD pdwValue, ULONG nBase)
{
-#if 1
NTSTATUS Status;
UNICODE_STRING UnicodeString;
RtlInitUnicodeString(&UnicodeString, pszText);
@@ -27,17 +26,11 @@ Imm32StrToUInt(LPCWSTR pszText, LPDWORD pdwValue, ULONG nBase)
if (!NT_SUCCESS(Status))
return E_FAIL;
return S_OK;
-#else
- LPWSTR endptr;
- *pdwValue = wcstoul(pszText, &endptr, nBase);
- return (*endptr ? E_FAIL : S_OK);
-#endif
}
HRESULT APIENTRY
Imm32UIntToStr(DWORD dwValue, ULONG nBase, LPWSTR pszBuff, USHORT cchBuff)
{
-#if 1
NTSTATUS Status;
UNICODE_STRING UnicodeString;
UnicodeString.Buffer = pszBuff;
@@ -46,16 +39,6 @@ Imm32UIntToStr(DWORD dwValue, ULONG nBase, LPWSTR pszBuff, USHORT
cchBuff)
if (!NT_SUCCESS(Status))
return E_FAIL;
return S_OK;
-#else
- LPCWSTR pszFormat;
- if (nBase == 16)
- pszFormat = L"%lX";
- else if (nBase == 10)
- pszFormat = L"%lu";
- else
- return E_INVALIDARG;
- return StringCchPrintfW(pszBuff, cchBuff, pszFormat, dwValue);
-#endif
}
BOOL WINAPI Imm32IsImcAnsi(HIMC hIMC)