mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[UCRT:LOCALE] Implement __acrt_MultiByteToWideChar
This commit is contained in:
parent
4ea1841f31
commit
bd3c7654ec
2 changed files with 32 additions and 0 deletions
31
sdk/lib/ucrt/locale/MultiByteToWideChar.c
Normal file
31
sdk/lib/ucrt/locale/MultiByteToWideChar.c
Normal 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);
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue