Fixed typo causing multiple file selections to always return the same single name.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth 2004-02-17 18:11:16 +00:00
parent e608d2285c
commit d1b3039b9f
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;