summaryrefslogtreecommitdiff
path: root/tests/context1.c
diff options
context:
space:
mode:
authorrpj <rpj>2007-01-05 01:19:56 +0000
committerrpj <rpj>2007-01-05 01:19:56 +0000
commiteeef426b8399ad39dfc759352a6e7b0348a047d1 (patch)
tree09565a10b3132311847c8fb4575313f9d645d476 /tests/context1.c
parenta7ed60cf396fcb8b0670e097dda24b1b0ec2e904 (diff)
Added more Win64 support
Diffstat (limited to 'tests/context1.c')
-rw-r--r--tests/context1.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/context1.c b/tests/context1.c
index 090df9c..e63dbec 100644
--- a/tests/context1.c
+++ b/tests/context1.c
@@ -75,6 +75,7 @@
#include "test.h"
#include "../implement.h"
+#include "../context.h"
static int washere = 0;
@@ -122,10 +123,7 @@ main()
context.ContextFlags = CONTEXT_CONTROL;
GetThreadContext(hThread, &context);
- /*
- *_x86 only!!!
- */
- context.Eip = (DWORD) anotherEnding;
+ PTW32_PROGCTR (context) = (DWORD_PTR) anotherEnding;
SetThreadContext(hThread, &context);
ResumeThread(hThread);
}