Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception/Write access violation when patching COMMAND.COM & IO.SYS #24

Closed
pbatard opened this issue Dec 23, 2011 · 2 comments
Closed
Assignees

Comments

@pbatard
Copy link
Owner

pbatard commented Dec 23, 2011

Looks like Windows doesn't exactly like patching resources within DLLs after all (but still does it):

Patching COMMAND.COM...
&DiskImage[filestart(=4200)+0x650c] = 0x000007fef0ee31e4
First-chance exception at 0x000000013f8df40b in rufus_fd.exe: 0xC0000005: Access violation writing location 0x000007fef0ee31e8.
@ghost ghost assigned pbatard Dec 23, 2011
@pbatard
Copy link
Owner Author

pbatard commented Jan 2, 2012

If it ain't broke...

Unless we encounter a Windows platform where the files end up not being properly patched, leave it as it is.

@pbatard pbatard closed this as completed Jan 2, 2012
@pbatard pbatard reopened this Mar 11, 2012
@pbatard
Copy link
Owner Author

pbatard commented Mar 11, 2012

Actually, the above, as well as the patching of the autorun.ico does crash the program when compiled as 64 bit with WDK.
Will have to duplicate memory to work around this issue.

Repository owner locked as resolved and limited conversation to collaborators Apr 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant