mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-26 22:10:53 +00:00
Change the IOGetVirtMem return value test to == -1 instead of < 0 which may include valid addresses
This commit is contained in:
1 parent
27ad18c3bd
commit
4c9412cd86
1 file changed
+1
-1
+1
-1
@@ -116,7 +116,7 @@ static void decoder_renderer_setup(int videoFormat, int width, int height, int r
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IOGetVirtMem(&mem_desc) <= 0) {
|
if (IOGetVirtMem(&mem_desc) == -1) {
|
||||||
fprintf(stderr, "Can't get virtual memory address\n");
|
fprintf(stderr, "Can't get virtual memory address\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user