aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormageven <62494521+mageven@users.noreply.github.com>2021-01-23 17:59:14 +0530
committerGitHub <noreply@github.com>2021-01-23 13:29:14 +0100
commit6982282cc8ad362924bcb0c176ccb6e6d0339fa4 (patch)
tree044278a161cb92f4b097dad8b1d195a0841d9876
parent3b200806378f393e3014d4f4fbc2948d80d00a3f (diff)
TZ: Fix loop condition in GetTZName (#1950)
Closes #1949
-rw-r--r--Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZone.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZone.cs b/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZone.cs
index 496c6786..c77c472e 100644
--- a/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZone.cs
+++ b/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZone.cs
@@ -183,11 +183,10 @@ namespace Ryujinx.HLE.HOS.Services.Time.TimeZone
{
int i = namePosition;
- char c = name[i];
+ char c;
- while (c != '\0' && !char.IsDigit(c) && c != ',' && c != '-' && c != '+')
+ while ((c = name[i]) != '\0' && !char.IsDigit(c) && c != ',' && c != '-' && c != '+')
{
- c = name[i];
i++;
}