mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 14:11:35 +00:00
Fix parsing rare GFE status code of 0xFFFFFFFF
This commit is contained in:
@@ -44,7 +44,7 @@ static const char* TAG_APP_INSTALL_PATH = "AppInstallPath";
|
|||||||
|
|
||||||
xmlChar* statusStr = xmlGetProp(node, (const xmlChar*)[TAG_STATUS_CODE UTF8String]);
|
xmlChar* statusStr = xmlGetProp(node, (const xmlChar*)[TAG_STATUS_CODE UTF8String]);
|
||||||
if (statusStr != NULL) {
|
if (statusStr != NULL) {
|
||||||
int status = [[NSString stringWithUTF8String:(const char*)statusStr] intValue];
|
int status = (int)[[NSString stringWithUTF8String:(const char*)statusStr] longLongValue];
|
||||||
xmlFree(statusStr);
|
xmlFree(statusStr);
|
||||||
self.statusCode = status;
|
self.statusCode = status;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
xmlChar* statusStr = xmlGetProp(node, (const xmlChar*)[TAG_STATUS_CODE UTF8String]);
|
xmlChar* statusStr = xmlGetProp(node, (const xmlChar*)[TAG_STATUS_CODE UTF8String]);
|
||||||
if (statusStr != NULL) {
|
if (statusStr != NULL) {
|
||||||
int status = [[NSString stringWithUTF8String:(const char*)statusStr] intValue];
|
int status = (int)[[NSString stringWithUTF8String:(const char*)statusStr] longLongValue];
|
||||||
xmlFree(statusStr);
|
xmlFree(statusStr);
|
||||||
self.statusCode = status;
|
self.statusCode = status;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user