fix WaitNextEvent call so that it doesn't request a negative sleep time (which is apparently ok for PPC but not x86)

svn: r5353
This commit is contained in:
Matthew Flatt 2007-01-14 05:08:09 +00:00
parent 3cf7d2a55e
commit 51720e3cc9

View File

@ -504,7 +504,7 @@ int WNE(EventRecord *e, double sleep_secs)
waiting_for_next_event = 1;
r = WaitNextEvent(everyEvent, e, sleep_secs * 60, mouseRgn);
r = WaitNextEvent(everyEvent, e, (sleep_secs < 0) ? 0x7FFFFFFF : sleep_secs * 60, mouseRgn);
waiting_for_next_event = 0;