mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 04:03:56 +00:00
[IMM32] Remove old code of Imm32StrToUInt and Imm32UIntToStr
CORE-11700
This commit is contained in:
parent
5891ab2bfd
commit
9455defbd3
1 changed files with 0 additions and 17 deletions
|
@ -19,7 +19,6 @@ HANDLE g_hImm32Heap = NULL;
|
||||||
HRESULT APIENTRY
|
HRESULT APIENTRY
|
||||||
Imm32StrToUInt(LPCWSTR pszText, LPDWORD pdwValue, ULONG nBase)
|
Imm32StrToUInt(LPCWSTR pszText, LPDWORD pdwValue, ULONG nBase)
|
||||||
{
|
{
|
||||||
#if 1
|
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
UNICODE_STRING UnicodeString;
|
UNICODE_STRING UnicodeString;
|
||||||
RtlInitUnicodeString(&UnicodeString, pszText);
|
RtlInitUnicodeString(&UnicodeString, pszText);
|
||||||
|
@ -27,17 +26,11 @@ Imm32StrToUInt(LPCWSTR pszText, LPDWORD pdwValue, ULONG nBase)
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
#else
|
|
||||||
LPWSTR endptr;
|
|
||||||
*pdwValue = wcstoul(pszText, &endptr, nBase);
|
|
||||||
return (*endptr ? E_FAIL : S_OK);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT APIENTRY
|
HRESULT APIENTRY
|
||||||
Imm32UIntToStr(DWORD dwValue, ULONG nBase, LPWSTR pszBuff, USHORT cchBuff)
|
Imm32UIntToStr(DWORD dwValue, ULONG nBase, LPWSTR pszBuff, USHORT cchBuff)
|
||||||
{
|
{
|
||||||
#if 1
|
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
UNICODE_STRING UnicodeString;
|
UNICODE_STRING UnicodeString;
|
||||||
UnicodeString.Buffer = pszBuff;
|
UnicodeString.Buffer = pszBuff;
|
||||||
|
@ -46,16 +39,6 @@ Imm32UIntToStr(DWORD dwValue, ULONG nBase, LPWSTR pszBuff, USHORT cchBuff)
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
return S_OK;
|
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)
|
BOOL WINAPI Imm32IsImcAnsi(HIMC hIMC)
|
||||||
|
|
Loading…
Reference in a new issue