From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [peter@runestig.com: Re: emacs-cvs built on Windows XP crashes on Windows 2000] Date: Wed, 04 Sep 2002 22:47:35 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1031194450 21997 127.0.0.1 (5 Sep 2002 02:54:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Sep 2002 02:54:10 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17mmmX-0005if-00 for ; Thu, 05 Sep 2002 04:54:09 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17mnM0-0001le-00 for ; Thu, 05 Sep 2002 05:30:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17mmo8-0005yx-00; Wed, 04 Sep 2002 22:55:48 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17mmgE-0003ds-00 for emacs-devel@gnu.org; Wed, 04 Sep 2002 22:47:38 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17mmgC-0003dQ-00 for emacs-devel@gnu.org; Wed, 04 Sep 2002 22:47:37 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17mmgB-0003dK-00 for emacs-devel@gnu.org; Wed, 04 Sep 2002 22:47:35 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 17mmgB-0007GR-00; Wed, 04 Sep 2002 22:47:35 -0400 Original-To: emacs-devel@gnu.org Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7505 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7505 Can someone who uses Windows see if this is right, and install it if so? ------- Start of forwarded message ------- Envelope-to: rms@gnu.org Delivery-date: Wed, 04 Sep 2002 09:07:14 -0400 To: bug-gnu-emacs@gnu.org Subject: Re: emacs-cvs built on Windows XP crashes on Windows 2000 From: "Peter 'Luna' Runestig" In-Reply-To: <001301c25405$cc50eb20$64110b0a@datavis.se> Sender: bug-gnu-emacs-admin@gnu.org Date: 04 Sep 2002 15:05:43 +0200 This is a quick hack to make it roll again: diff -urN emacs-cvs.orig/src/emacs.c emacs-cvs/src/emacs.c - --- emacs-cvs.orig/src/emacs.c Wed Aug 28 08:28:30 2002 +++ emacs-cvs/src/emacs.c Wed Sep 4 14:38:07 2002 @@ -1536,6 +1536,19 @@ keys_of_window (); } +#ifdef HAVE_NTGUI + { + /* these must be initialized every run time */ + extern FARPROC track_mouse_event_fn; + extern FARPROC get_menu_item_info; + extern FARPROC set_menu_item_info; + HMODULE user32 = GetModuleHandle ("user32.dll"); + track_mouse_event_fn = GetProcAddress (user32, "TrackMouseEvent"); + get_menu_item_info = GetProcAddress (user32, "GetMenuItemInfoA"); + set_menu_item_info = GetProcAddress (user32, "SetMenuItemInfoA"); + } +#endif /* HAVE_NTGUI */ + if (!noninteractive) { #ifdef VMS Cheers, - - Peter - -- Peter 'Luna' Runestig (fd. Altberg), Sweden PGP Key ID: 0xD07BBE13 Fingerprint: 7B5C 1F48 2997 C061 DE4B 42EA CB99 A35C D07B BE13 AOL Instant Messenger Screenname: PRunestig _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs ------- End of forwarded message -------