mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-23 00:26:42 +00:00
Change the IOGetVirtMem return value test to == -1 instead of < 0 which may include valid addresses
This commit is contained in:
@@ -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