mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
fusion/tests: Don't crash if we have a culture attribute.
This commit is contained in:
parent
ad9fb647b4
commit
e0157f424b
@ -244,11 +244,24 @@ static BOOL enum_gac_assemblies(struct list *assemblies, int depth, LPSTR path)
|
||||
}
|
||||
else if (depth == 1)
|
||||
{
|
||||
ptr = strstr(ffd.cFileName, "__");
|
||||
char culture[MAX_PATH];
|
||||
|
||||
ptr = strstr(ffd.cFileName, "_");
|
||||
*ptr = '\0';
|
||||
ptr += 2;
|
||||
sprintf(buf, "Version=%s, Culture=neutral, PublicKeyToken=%s",
|
||||
ffd.cFileName, ptr);
|
||||
ptr++;
|
||||
|
||||
if (*ptr != '_')
|
||||
{
|
||||
lstrcpyA(culture, ptr);
|
||||
*strstr(culture, "_") = '\0';
|
||||
}
|
||||
else
|
||||
lstrcpyA(culture, "neutral");
|
||||
|
||||
ptr = strchr(ptr, '_');
|
||||
ptr++;
|
||||
sprintf(buf, "Version=%s, Culture=%s, PublicKeyToken=%s",
|
||||
ffd.cFileName, culture, ptr);
|
||||
lstrcpyA(disp, parent);
|
||||
lstrcatA(disp, buf);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user