Fix copy&paste bug (#17059)
authorJan Kotas <jkotas@microsoft.com>
Tue, 20 Mar 2018 04:16:23 +0000 (21:16 -0700)
committerGitHub <noreply@github.com>
Tue, 20 Mar 2018 04:16:23 +0000 (21:16 -0700)
src/mscorlib/src/System/Globalization/CompareInfo.Windows.cs

index dafcdd1..df62d7b 100644 (file)
@@ -145,7 +145,7 @@ namespace System.Globalization
                     if (Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName,
                                                       flags,
                                                       pSource, source.Length,
-                                                      null, 0,
+                                                      pSortKey, sortKeyLength,
                                                       null, null, _sortHandle) != sortKeyLength)
                     {
                         throw new ArgumentException(SR.Arg_ExternalException);