changeset 61926:e1eca57a26b4

(Fx_server_version): Add BLOCK_INPUT around Gestalt.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 29 Apr 2005 09:00:22 +0000
parents e3bedede9b3f
children 89f644173276
files src/macfns.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/macfns.c	Fri Apr 29 09:00:07 2005 +0000
+++ b/src/macfns.c	Fri Apr 29 09:00:22 2005 +0000
@@ -2969,8 +2969,13 @@
 {
   int mac_major_version;
   SInt32 response;
-
-  if (Gestalt (gestaltSystemVersion, &response) != noErr)
+  OSErr err;
+
+  BLOCK_INPUT;
+  err = Gestalt (gestaltSystemVersion, &response);
+  UNBLOCK_INPUT;
+
+  if (err != noErr)
     error ("Cannot get Mac OS version");
 
   mac_major_version = (response >> 8) & 0xff;