mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Fix parsing rare GFE status code of 0xFFFFFFFF
This commit is contained in:
@@ -296,7 +296,10 @@ NvHTTP::verifyResponseStatus(QString xml)
|
|||||||
{
|
{
|
||||||
if (xmlReader.name() == "root")
|
if (xmlReader.name() == "root")
|
||||||
{
|
{
|
||||||
int statusCode = xmlReader.attributes().value("status_code").toInt();
|
// Status code can be 0xFFFFFFFF in some rare cases on GFE 3.20.3, and
|
||||||
|
// QString::toInt() will fail in that case, so use QString::toUInt()
|
||||||
|
// and cast the result to an int instead.
|
||||||
|
int statusCode = (int)xmlReader.attributes().value("status_code").toUInt();
|
||||||
if (statusCode == 200)
|
if (statusCode == 200)
|
||||||
{
|
{
|
||||||
// Successful
|
// Successful
|
||||||
|
|||||||
Reference in New Issue
Block a user