Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com Date: Tue, 27 Apr 1999 21:31:52 -0400 Message-Id: <199904280131.VAA28701@envy.delorie.com> From: DJ Delorie To: fortinj AT ibm DOT net CC: cygwin-developers AT sourceware DOT cygnus DOT com In-reply-to: <37265A6E.813F8ED8@ibm.net> (fortinj@ibm.net) Subject: Re: cygwin1.dll startup and GDB References: <37265A6E DOT 813F8ED8 AT ibm DOT net> Looks like OpenFileMapping() doesn't properly check its parameters. Try rearranging the code like this: char *mapname = NULL; if (name) { mapname = shared_name (name, 0); shared_h = OpenFileMappingA (FILE_MAP_READ | FILE_MAP_WRITE, TRUE, mapname); } if (!shared_h && !(shared_h = CreateFileMappingA ((HANDLE) 0xffffffff, &sec_all, If this works, mail me a diff for the final source and I'll apply it. DJ