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."