mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-26 05:50:05 +00:00
Fix incorrect ret value assignment (#900)
This commit is contained in:
1 parent
74e552d50e
commit
5f7f0ec75b
1 file changed
+2
-2
@@ -750,7 +750,7 @@ int gs_start_app(PSERVER_DATA server, STREAM_CONFIGURATION *config, int appId, b
|
||||
else
|
||||
goto cleanup;
|
||||
|
||||
if ((ret = xml_status(data->memory, data->size) != GS_OK))
|
||||
if ((ret = xml_status(data->memory, data->size)) != GS_OK)
|
||||
goto cleanup;
|
||||
else if ((ret = xml_search(data->memory, data->size, "gamesession", &result)) != GS_OK &&
|
||||
(ret = xml_search(data->memory, data->size, "resume", &result)) != GS_OK)
|
||||
@@ -793,7 +793,7 @@ int gs_quit_app(PSERVER_DATA server) {
|
||||
if ((ret = http_request(url, data)) != GS_OK)
|
||||
goto cleanup;
|
||||
|
||||
if ((ret = xml_status(data->memory, data->size) != GS_OK))
|
||||
if ((ret = xml_status(data->memory, data->size)) != GS_OK)
|
||||
goto cleanup;
|
||||
else if ((ret = xml_search(data->memory, data->size, "cancel", &result)) != GS_OK)
|
||||
goto cleanup;
|
||||
|
||||
Reference in new issue
Block a user