[UCRT:LOCALE] Implement __acrt_MultiByteToWideChar

This commit is contained in:
Timo Kreuzer 2024-12-02 13:46:14 +02:00
parent 4ea1841f31
commit bd3c7654ec
2 changed files with 32 additions and 0 deletions

View file

@ -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);
}

View file

@ -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