diff options
| author | mageven <62494521+mageven@users.noreply.github.com> | 2021-01-23 17:59:14 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-23 13:29:14 +0100 |
| commit | 6982282cc8ad362924bcb0c176ccb6e6d0339fa4 (patch) | |
| tree | 044278a161cb92f4b097dad8b1d195a0841d9876 | |
| parent | 3b200806378f393e3014d4f4fbc2948d80d00a3f (diff) | |
TZ: Fix loop condition in GetTZName (#1950)
Closes #1949
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZone.cs | 5 |
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++; } |
