From 4f19cb1521ff3c2c50820d91c00dea6d2af48954 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Fri, 29 Apr 2005 09:00:22 +0000 Subject: [PATCH] (Fx_server_version): Add BLOCK_INPUT around Gestalt. --- src/macfns.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/macfns.c b/src/macfns.c index b85c4f01795..a8b685582d5 100644 --- a/src/macfns.c +++ b/src/macfns.c @@ -2969,8 +2969,13 @@ If omitted or nil, that stands for the selected frame's display. */) { int mac_major_version; SInt32 response; + OSErr err; - if (Gestalt (gestaltSystemVersion, &response) != noErr) + BLOCK_INPUT; + err = Gestalt (gestaltSystemVersion, &response); + UNBLOCK_INPUT; + + if (err != noErr) error ("Cannot get Mac OS version"); mac_major_version = (response >> 8) & 0xff; -- 2.39.2