mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Small compress-icons fix from Laszlo.
committer: mfx <mfx> 968822264 +0000
This commit is contained in:
parent
b91c209852
commit
d9248a58af
|
@ -330,9 +330,9 @@ endif
|
||||||
export LIB
|
export LIB
|
||||||
|
|
||||||
ifeq ($(DEBUG),1)
|
ifeq ($(DEBUG),1)
|
||||||
CFLAGS +=
|
CFLAGS += -Od -d
|
||||||
else
|
else
|
||||||
CFLAGS += -O2
|
CFLAGS += -O2 -d
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LINK_EXE = $(CC) $(LDFLAGS) -e$@ $^ $(LDLIBS)
|
LINK_EXE = $(CC) $(LDFLAGS) -e$@ $^ $(LDLIBS)
|
||||||
|
|
|
@ -1315,7 +1315,7 @@ void PackW32Pe::processResources(Resource* res)
|
||||||
memset(ibuf + res->offs(),FILLVAL,res->size());
|
memset(ibuf + res->offs(),FILLVAL,res->size());
|
||||||
res->newoffs() = ptr_diff(ores,oresources);
|
res->newoffs() = ptr_diff(ores,oresources);
|
||||||
if (rtype == 3)
|
if (rtype == 3)
|
||||||
compress_icon = iconcnt++ >= iconsin1stdir || opt->w32pe.compress_icons == 1;
|
compress_icon = iconcnt++ > iconsin1stdir || opt->w32pe.compress_icons == 1;
|
||||||
else if (rtype == 14)
|
else if (rtype == 14)
|
||||||
{
|
{
|
||||||
if (opt->w32pe.compress_icons == 1)
|
if (opt->w32pe.compress_icons == 1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user