Skip Menu |

This queue is for tickets about the Win32-Exe CPAN distribution.

Report information
The Basics
Id: 7595
Status: resolved
Priority: 0/
Queue: Win32-Exe

People
Owner: Nobody in particular
Requestors: jettero [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.08
Fixed in: (no value)



Subject: no resource section
I did this: Win32::Exe->new("exename.exe")->update( icon=>"my.ico" ); On notepad.exe, this would work great. My exe lacked a resource section, so this (from &set_icons in Exe.pm) was returning an undef: my $rsrc = $self->resource_section; Which made these lines generate the errors (since $rsrc wasn't defined): $rsrc->remove('/#RT_GROUP_ICON'); $rsrc->remove('/#RT_ICON'); Being able to add an empty resource section would be a "useful addition."
Everything is fixed eventually :) Win32::Exe 0.14 allows creation of a new resource section if none exists. On Thu Sep 09 14:12:31 2004, JETTERO wrote: Show quoted text
> I did this: > > Win32::Exe->new("exename.exe")->update( icon=>"my.ico" ); > > On notepad.exe, this would work great. My exe lacked a > resource section, so this (from &set_icons in Exe.pm) was > returning an > undef: > > my $rsrc = $self->resource_section; > > Which made these lines generate the errors (since $rsrc > wasn't defined): > > $rsrc->remove('/#RT_GROUP_ICON'); > $rsrc->remove('/#RT_ICON'); > > Being able to add an empty resource section would be a "useful > addition."