mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-01 07:15:54 +00:00
Fix error check
This commit is contained in:
parent
d1db1d5231
commit
41fddcf5ef
@ -368,7 +368,7 @@ int rk_setup(int videoFormat, int width, int height, int redrawRate, void* conte
|
||||
}
|
||||
|
||||
fd = open("/dev/dri/card0", O_RDWR | O_CLOEXEC);
|
||||
if (fd >= 0) {
|
||||
if (fd < 0) {
|
||||
fprintf(stderr, "Unable to open card0: %d\n", errno);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user