Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c263286

Browse files
committed
StandardGetFile without args now shows all files (in stead of none)
1 parent 7be34a8 commit c263286

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Mac/Modules/macfsmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,8 @@ mfs_StandardGetFile(self, args)
480480
while ( numtypes < 4 && list[numtypes] ) {
481481
numtypes++;
482482
}
483+
if ( numtypes == 0 )
484+
numtypes = -1;
483485
StandardGetFile((FileFilterUPP)0, numtypes, list, &reply);
484486
return mkvalue("(Oi)", newmfssobject(&reply.sfFile), reply.sfGood);
485487
}

0 commit comments

Comments
 (0)