Fix parsing multiple struct fields defined in one line

This commit is contained in:
Marcel 2021-06-06 10:15:15 +02:00
parent 246798a0ba
commit 16ad9fbd73

View File

@ -589,7 +589,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);