Fix build break due to 'W'
authorStephen Toub <stoub@microsoft.com>
Wed, 30 Jan 2019 22:01:42 +0000 (17:01 -0500)
committerStephen Toub <stoub@microsoft.com>
Thu, 31 Jan 2019 14:47:11 +0000 (09:47 -0500)
Commit migrated from https://github.com/dotnet/corefx/commit/94e9d02ad70b2224d012ac4a66eaa1f913ae4f29

src/libraries/System.Runtime.Extensions/src/System/Environment.Windows.cs

index 21e2ab0..7a6a840 100644 (file)
@@ -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);
             }