From 28bfaccd1dc242c47f283b7bb5065ed800420542 Mon Sep 17 00:00:00 2001 From: ergo720 Date: Fri, 3 Aug 2018 16:25:39 +0200 Subject: [PATCH] Fix a crash in the dashboard --- src/CxbxKrnl/Emu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CxbxKrnl/Emu.cpp b/src/CxbxKrnl/Emu.cpp index fc0588621..9096b6433 100644 --- a/src/CxbxKrnl/Emu.cpp +++ b/src/CxbxKrnl/Emu.cpp @@ -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