mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
fix parameter ordering in windows.cpp's MySystem::visit
It's amazing to me that ebp and esp have been swapped for over three years without anybody noticing. It was dumb luck that the Trace test (which is designed to catch just such a thing) happened to fail when I ran the whole suite, and further investigation revealed that it was failing maybe five percent of the times it was run. Now we know why.
This commit is contained in:
parent
54b560b149
commit
bad3a7979c
@ -775,12 +775,12 @@ class MySystem: public System {
|
||||
if (rv) {
|
||||
# ifdef ARCH_x86_32
|
||||
visitor->visit(reinterpret_cast<void*>(context.Eip),
|
||||
reinterpret_cast<void*>(context.Ebp),
|
||||
reinterpret_cast<void*>(context.Esp));
|
||||
reinterpret_cast<void*>(context.Esp),
|
||||
reinterpret_cast<void*>(context.Ebp));
|
||||
# elif defined ARCH_x86_64
|
||||
visitor->visit(reinterpret_cast<void*>(context.Rip),
|
||||
reinterpret_cast<void*>(context.Rbp),
|
||||
reinterpret_cast<void*>(context.Rsp));
|
||||
reinterpret_cast<void*>(context.Rsp),
|
||||
reinterpret_cast<void*>(context.Rbp));
|
||||
# endif
|
||||
success = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user