This commit is contained in:
AzaezelX 2023-05-27 20:47:21 -05:00
parent a5f3e70653
commit 166128dd73
7 changed files with 170 additions and 171 deletions

View file

@ -22,8 +22,10 @@ static NSArray *BuildAllowedFileTypes( const char *filterList )
{
if ( filterList[i] == ',' || filterList[i] == ';' || filterList[i] == '\0' )
{
++p_typebuf;
if (filterList[i] != '\0')
++p_typebuf;
*p_typebuf = '\0';
NSString *thisType = [NSString stringWithUTF8String: typebuf];
[buildFilterList addObject:thisType];
p_typebuf = typebuf;