浏览代码

Use invariant culture.

Pieter-Jan Briers 6 年之前
父节点
当前提交
fc5ada5e23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Avalonia.X11/Glx/Glx.cs

+ 1 - 1
src/Avalonia.X11/Glx/Glx.cs

@@ -94,7 +94,7 @@ namespace Avalonia.X11.Glx
         // which can then cause segmentation faults because they return garbage.
         public static IntPtr SafeGetProcAddress(string proc, bool optional)
         {
-            if (proc.StartsWith("egl"))
+            if (proc.StartsWith("egl", StringComparison.InvariantCulture))
             {
                 return IntPtr.Zero;
             }