https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bd3c7654ec5483e735d46b...
commit bd3c7654ec5483e735d46b238a262c617eadca6d Author: Timo Kreuzer timo.kreuzer@reactos.org AuthorDate: Mon Dec 2 13:46:14 2024 +0200 Commit: Timo Kreuzer timo.kreuzer@reactos.org CommitDate: Sun Jan 26 18:08:55 2025 +0200
[UCRT:LOCALE] Implement __acrt_MultiByteToWideChar --- sdk/lib/ucrt/locale/MultiByteToWideChar.c | 31 +++++++++++++++++++++++++++++++ sdk/lib/ucrt/locale/locale.cmake | 1 + 2 files changed, 32 insertions(+)
diff --git a/sdk/lib/ucrt/locale/MultiByteToWideChar.c b/sdk/lib/ucrt/locale/MultiByteToWideChar.c new file mode 100644 index 00000000000..fab0e2656a9 --- /dev/null +++ b/sdk/lib/ucrt/locale/MultiByteToWideChar.c @@ -0,0 +1,31 @@ +// +// MultiByteToWideChar.c +// +// Copyright (c) 2024 Timo Kreuzer +// +// Definition of __acrt_MultiByteToWideChar. +// +// SPDX-License-Identifier: MIT +// + +#include <windows.h> +//#include <stringapiset.h> + +_Success_(return != 0) +int +__cdecl +__acrt_MultiByteToWideChar ( + _In_ UINT _CodePage, + _In_ DWORD _DWFlags, + _In_ LPCSTR _LpMultiByteStr, + _In_ int _CbMultiByte, + _Out_writes_opt_(_CchWideChar) LPWSTR _LpWideCharStr, + _In_ int _CchWideChar) +{ + return MultiByteToWideChar(_CodePage, + _DWFlags, + _LpMultiByteStr, + _CbMultiByte, + _LpWideCharStr, + _CchWideChar); +} diff --git a/sdk/lib/ucrt/locale/locale.cmake b/sdk/lib/ucrt/locale/locale.cmake index 038a0f46dc0..7227d7e8d1f 100644 --- a/sdk/lib/ucrt/locale/locale.cmake +++ b/sdk/lib/ucrt/locale/locale.cmake @@ -20,6 +20,7 @@ list(APPEND UCRT_LOCALE_SOURCES locale/localeconv.cpp locale/locale_refcounting.cpp locale/locale_update.cpp + locale/MultiByteToWideChar.c locale/nlsdata.cpp locale/setlocale.cpp locale/wsetlocale.cpp