This is the mail archive of the firstname.lastname@example.org
mailing list for the Cygwin project. See the Cygwin
home page for more information.
Re: cygwin1.dll startup and GDB
- To: email@example.com
- Subject: Re: cygwin1.dll startup and GDB
- From: DJ Delorie <firstname.lastname@example.org>
- Date: Tue, 27 Apr 1999 21:31:52 -0400
- CC: email@example.com
- References: <37265A6E.813F8ED8@ibm.net>
Looks like OpenFileMapping() doesn't properly check its parameters.
Try rearranging the code like this:
char *mapname = NULL;
mapname = shared_name (name, 0);
shared_h = OpenFileMappingA (FILE_MAP_READ | FILE_MAP_WRITE,
if (!shared_h &&
!(shared_h = CreateFileMappingA ((HANDLE) 0xffffffff,
If this works, mail me a diff for the final source and I'll apply it.