Avoid collisions between parallel installations of Cygwin

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Oct 20 19:29:00 GMT 2009


On Oct 20 21:19, Corinna Vinschen wrote:
> On Oct 20 20:36, Corinna Vinschen wrote:
> > Well, I don't care, I can also add version info.  The real problem is
> > that the BeginUpdateResource/UpdateResource/EndUpdateResource functions
> > apparently destroy the DLL!
> > [...]
> 
> Btw., for those who want to experiment, this is the current state of the
> patch.  It's feature-complete, it's just missing a bit of cleanup, the
> version info in the resource, and changing the resource value via
> cygcheck is broken as outlined in my previous mail.  Oh yes, the
> documentation is missing as well.
> 
> The new options in cygcheck are:
> 
>   --enable-unique-object-names
>   --disable-unique-object-names
>   --show-unique-object-names
> 
>   --delete-orphaned-installation-keys
>   ... and -s additionally prints all the keys accumulated in HKLM and HKCU,
>   together with it's orphan state.
> 
> I omit the ChangeLog for now.
> [...]
> +	      if (!(update = BeginUpdateResource (path, TRUE)))

Grrr, I changed the second value to BeginUpdateResource to TRUE for
testing purposes.  The right value is FALSE.  Sure enough setting it to
TRUE didn't change anything in terms of getting a broken DLL as result,
but, OF COURSE, I forgot to revert that change before sending the patch
to the list.


Sorry,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat



More information about the Cygwin-developers mailing list