X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e608d2285cd20c592239994ebe5a29ca265892bf..d1b3039b9f78214fd3d45b6f123d6a0d964038ad:/src/mac/filedlg.cpp 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;