News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

playing with UpdateResource

Started by ragdog, January 23, 2008, 07:18:20 PM

Previous topic - Next topic

ragdog

hi

i have a questions to UpdateResource!
i playing with UpdateResource for add files to resource in a another exe
this works succesfully
   
But if I had added to the file are in hex-editor of the exe file these strange strings what is this


PADD
INGXXPADDINGPADDINGXXPADDING
PADDINGXXPADDINGPADDINGXXPADDING
PADDINGXXPADDINGPADDINGXXPADDING
PADDINGXXPADDINGPADDINGXXPADDING
PADDINGXXPADDINGPADDINGXXPADDING
PADDINGXXPADDINGPADDINGXXPADDING
PADDINGXXPADDINGPADDINGXXPADDING



thanks
ragdog

Tedd

It's just to take up space to keep the alignment and/or to avoid needing to resize the exe every modification.
No snowflake in an avalanche feels responsible.

ragdog

thanks for your reply

   
I can delete this stuff works since the executable file without error?

Tedd

You can overwrite it, since it will be ignored. If you want to remove it then you need to be careful as PE sections must be specific sizes - so you may need to rebuild the exe, not simply remove those bytes.
No snowflake in an avalanche feels responsible.

ragdog

thanks

i have written a routine to search for paddingxx... and fill this with 0 bytes!

greets
ragdog