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; diff --git a/src/mac/filedlg.cpp b/src/mac/filedlg.cpp index 08bce85f1f..59807f398d 100644 --- a/src/mac/filedlg.cpp +++ b/src/mac/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;