Fix incorrect ret value assignment (#900)

This commit is contained in:
skysbird
2025-11-29 06:27:01 +08:00
committed by GitHub
parent 74e552d50e
commit 5f7f0ec75b

View File

@@ -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;