From 40e423913b7fce1e06d53a3c41859e908bd2379b Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 30 Jan 2019 17:01:42 -0500 Subject: [PATCH] Fix build break due to 'W' Commit migrated from https://github.com/dotnet/corefx/commit/94e9d02ad70b2224d012ac4a66eaa1f913ae4f29 --- .../System.Runtime.Extensions/src/System/Environment.Windows.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Runtime.Extensions/src/System/Environment.Windows.cs b/src/libraries/System.Runtime.Extensions/src/System/Environment.Windows.cs index 21e2ab0..7a6a840 100644 --- a/src/libraries/System.Runtime.Extensions/src/System/Environment.Windows.cs +++ b/src/libraries/System.Runtime.Extensions/src/System/Environment.Windows.cs @@ -69,7 +69,7 @@ namespace System var builder = new ValueStringBuilder(initialBuffer); uint length; - while ((length = Interop.Kernel32.ExpandEnvironmentStringsW(name, ref builder.GetPinnableReference(), (uint)builder.Capacity)) > builder.Capacity) + while ((length = Interop.Kernel32.ExpandEnvironmentStrings(name, ref builder.GetPinnableReference(), (uint)builder.Capacity)) > builder.Capacity) { builder.EnsureCapacity((int)length); } -- 2.7.4