delorie.com/archives/browse.cgi | search |
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 <dj AT delorie DOT com> |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |