Browse Source

Merge pull request #8590 from DrWenz/fix/drmoutput

Fix DrmCard creation for passed path
pull/8595/head
Nikita Tsukanov 4 years ago
committed by GitHub
parent
commit
691884ec8a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Linux/Avalonia.LinuxFramebuffer/Output/DrmBindings.cs

2
src/Linux/Avalonia.LinuxFramebuffer/Output/DrmBindings.cs

@ -164,7 +164,7 @@ namespace Avalonia.LinuxFramebuffer.Output
else
{
Fd = open(path, 2, 0);
if(Fd != -1) throw new Win32Exception($"Couldn't open {path}");
if(Fd == -1) throw new Win32Exception($"Couldn't open {path}");
}
}

Loading…
Cancel
Save