0
0
Fork 0

TZ: Fix loop condition in GetTZName (#1950)

Closes #1949
This commit is contained in:
mageven 2021-01-23 17:59:14 +05:30 committed by GitHub
parent 3b20080637
commit 6982282cc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,11 +183,10 @@ namespace Ryujinx.HLE.HOS.Services.Time.TimeZone
{ {
int i = namePosition; 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++; i++;
} }