Merge pull request #1371 from ergo720/dash_crash_fix

Fix a crash in the dashboard
This commit is contained in:
PatrickvL 2018-08-03 16:42:49 +02:00 committed by GitHub
commit ffd62a3162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ std::string FormatTitleId(uint32_t title_id)
// EG: MS-001 for 1st tile published by MS, EA-002 for 2nd title by EA, etc
// Some special Xbes (Dashboard, XDK Samples) use non-alphanumeric serials
// We fall back to Hex for those
char pTitleId1 = (title_id >> 24) & 0xFF;
char pTitleId2 = (title_id >> 16) & 0xFF;
unsigned char pTitleId1 = (title_id >> 24) & 0xFF;
unsigned char pTitleId2 = (title_id >> 16) & 0xFF;
if (!isalnum(pTitleId1) || !isalnum(pTitleId2)) {
// Prefix was non-printable, so we need to print a hex reprentation of the entire title_id