comparison src/macselect.c @ 75240:ffa0f75caa03

(Fmac_resume_apple_event): Set error number when descriptor type of reply is non-null.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Mon, 15 Jan 2007 08:36:29 +0000
parents 6f17f4d8d9d6
children 3d45362f1d38
comparison
equal deleted inserted replaced
75239:37c56b5778df 75240:ffa0f75caa03
1388 if (*p) 1388 if (*p)
1389 { 1389 {
1390 ae = *p; 1390 ae = *p;
1391 *p = (*p)->next; 1391 *p = (*p)->next;
1392 if (INTEGERP (error_code) 1392 if (INTEGERP (error_code)
1393 && ae->apple_event.descriptorType != typeNull) 1393 && ae->reply.descriptorType != typeNull)
1394 { 1394 {
1395 SInt32 errn = XINT (error_code); 1395 SInt32 errn = XINT (error_code);
1396 1396
1397 AEPutParamPtr (&ae->reply, keyErrorNumber, typeSInt32, 1397 AEPutParamPtr (&ae->reply, keyErrorNumber, typeSInt32,
1398 &errn, sizeof (SInt32)); 1398 &errn, sizeof (SInt32));