https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4ea1841f31e178d0bbf6346e37e51f154a539e8b

commit 4ea1841f31e178d0bbf6346e37e51f154a539e8b
Author:     Timo Kreuzer <timo.kreu...@reactos.org>
AuthorDate: Mon Oct 21 17:33:43 2024 +0300
Commit:     Timo Kreuzer <timo.kreu...@reactos.org>
CommitDate: Sun Jan 26 18:08:55 2025 +0200

    [UCRT:LOCALE] Implement __acrt_GetStringTypeW
---
 sdk/lib/ucrt/locale/GetStringTypeW.c | 24 ++++++++++++++++++++++++
 sdk/lib/ucrt/locale/locale.cmake     |  1 +
 2 files changed, 25 insertions(+)

diff --git a/sdk/lib/ucrt/locale/GetStringTypeW.c 
b/sdk/lib/ucrt/locale/GetStringTypeW.c
new file mode 100644
index 00000000000..10ac0d85132
--- /dev/null
+++ b/sdk/lib/ucrt/locale/GetStringTypeW.c
@@ -0,0 +1,24 @@
+//
+// GetStringTypeW.c
+//
+//      Copyright (c) 2024 Timo Kreuzer
+//
+// Definition of __acrt_GetStringTypeW.
+//
+// SPDX-License-Identifier: MIT
+//
+
+#include <windows.h>
+//#include <stringapiset.h>
+
+_Success_(return)
+BOOL
+__cdecl
+__acrt_GetStringTypeW (
+    _In_ DWORD _DWInfoType,
+    _In_NLS_string_(_CchSrc) PCWCH _LpSrcStr,
+    _In_ int _CchSrc,
+    _Out_ LPWORD _LpCharType)
+{
+    return GetStringTypeW(_DWInfoType, _LpSrcStr, _CchSrc, _LpCharType);
+}
diff --git a/sdk/lib/ucrt/locale/locale.cmake b/sdk/lib/ucrt/locale/locale.cmake
index 97fe554114a..038a0f46dc0 100644
--- a/sdk/lib/ucrt/locale/locale.cmake
+++ b/sdk/lib/ucrt/locale/locale.cmake
@@ -6,6 +6,7 @@ list(APPEND UCRT_LOCALE_SOURCES
     locale/GetLocaleInfoA.cpp
     locale/getqloc_downlevel.cpp
     locale/GetStringTypeA.cpp
+    locale/GetStringTypeW.c
     locale/get_qualified_locale.cpp
     locale/glstatus.cpp
     locale/initctype.cpp

Reply via email to