cygwin1.dll startup and GDB
DJ Delorie
dj@delorie.com
Tue Apr 27 18:31:00 GMT 1999
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
More information about the Cygwin-developers
mailing list