X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e71800ba3a40711f6c6c2461ed10cd6f2502c1d1..94d1d0f447efe45e25520d2352a4fe13c1837608:/src/mac/carbon/filedlg.cpp diff --git a/src/mac/carbon/filedlg.cpp b/src/mac/carbon/filedlg.cpp index 08bce85f1f..59807f398d 100644 --- a/src/mac/carbon/filedlg.cpp +++ b/src/mac/carbon/filedlg.cpp @@ -436,7 +436,7 @@ int wxFileDialog::ShowModal() ::AECountItems(&navReply.selection , &count); for (long i = 1; i <= count; ++i) { - err = ::AEGetNthPtr(&(navReply.selection), 1, typeFSRef, &theKeyword, &actualType, + err = ::AEGetNthPtr(&(navReply.selection), i, typeFSRef, &theKeyword, &actualType, &theFSRef, sizeof(theFSRef), &actualSize); if (err != noErr) break;