mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-13 21:02:28 +00:00
Fix parsing rare GFE status code of 0xFFFFFFFF
This commit is contained in:
parent
d6b5c5f63e
commit
782c5f8a34
1 changed files with 4 additions and 1 deletions
|
@ -296,7 +296,10 @@ NvHTTP::verifyResponseStatus(QString xml)
|
|||
{
|
||||
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)
|
||||
{
|
||||
// Successful
|
||||
|
|
Loading…
Reference in a new issue