Fix parsing multiple struct fields defined in one line (#1813)

This commit is contained in:
Deathbat2190 2021-06-06 13:22:42 +02:00 committed by GitHub
parent 32f3f53718
commit 9681a072d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -703,7 +703,7 @@ void GetDataTypeAndName(const char *typeName, int typeNameLen, char *type, char
{
for (int k = typeNameLen; k > 0; k--)
{
if (typeName[k] == ' ')
if (typeName[k] == ' ' && typeName[k - 1] != ',')
{
// Function name starts at this point (and ret type finishes at this point)
MemoryCopy(type, typeName, k);