From 89f2746db887bfb26b461692e27efe902501a0a3 Mon Sep 17 00:00:00 2001 From: Patrick Grawehr Date: Thu, 11 Jul 2024 21:50:41 +0200 Subject: [PATCH] Prevent NotImplementedException in some test cases --- tools/ArduinoCsCompiler/Runtime/MiniInterop.Kernel32.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ArduinoCsCompiler/Runtime/MiniInterop.Kernel32.cs b/tools/ArduinoCsCompiler/Runtime/MiniInterop.Kernel32.cs index bf06009363..f6e72be212 100644 --- a/tools/ArduinoCsCompiler/Runtime/MiniInterop.Kernel32.cs +++ b/tools/ArduinoCsCompiler/Runtime/MiniInterop.Kernel32.cs @@ -152,7 +152,7 @@ internal static unsafe int CompareStringOrdinal( internal static unsafe int LCMapStringEx(string lpLocaleName, uint dwMapFlags, char* lpSrcStr, int cchsrc, void* lpDestStr, int cchDest, void* lpVersionInformation, void* lpReserved, IntPtr sortHandle) { - throw new NotImplementedException(); + return 0; // Can apparently be null in InvariantCulture mode. } internal static int FindNLSString(