Dmitry Timoshkov dmitry@baikal.ru writes:
On the second thought I think that the test is really invalid, it depends on the linker to put both the static buffer and the changed data (API pointers) in the same page of the same section in a PE binary.
That still doesn't make it invalid. You can write to the variable if you want to make sure it's modified.