From 00c0aa61c2cf2a9f1ce0787e73dd88a874519f25 Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 25 Jan 2003 14:04:47 +0000 Subject: [PATCH] AEGetNthPtr() is stupid and counts from 1. Allowing for this gets aevt/odoc working. git-svn-id: svn://svn.tartarus.org/sgt/putty@2715 cda61777-01e9-0310-a592-d414129be87e --- mac/macdlg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mac/macdlg.c b/mac/macdlg.c index 53ba24c0..2606f0b0 100644 --- a/mac/macdlg.c +++ b/mac/macdlg.c @@ -1,4 +1,4 @@ -/* $Id: macdlg.c,v 1.6 2003/01/23 22:57:43 ben Exp $ */ +/* $Id: macdlg.c,v 1.7 2003/01/25 14:04:47 ben Exp $ */ /* * Copyright (c) 2002 Ben Harris * All rights reserved. @@ -195,8 +195,8 @@ pascal OSErr mac_aevt_odoc(const AppleEvent *req, AppleEvent *reply, if (err != noErr) goto out; for (i = 0; i < ndocs; i++) { - err = AEGetNthPtr(&docs, i, typeFSS, &keywd, &type, &fss, sizeof(fss), - &size); + err = AEGetNthPtr(&docs, i + 1, typeFSS, + &keywd, &type, &fss, sizeof(fss), &size); if (err != noErr) goto out; err = mac_opensessionfrom(&fss); if (err != noErr) goto out; -- 2.11.0