projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f5e43f
)
[SUSPEND]
author
Timo Kreuzer
<timo.kreuzer@reactos.org>
Fri, 25 Jun 2010 01:37:58 +0000
(
01:37
+0000)
committer
Timo Kreuzer
<timo.kreuzer@reactos.org>
Fri, 25 Jun 2010 01:37:58 +0000
(
01:37
+0000)
Fix compilation for amd64
svn path=/trunk/; revision=47844
rostests/tests/suspend/suspend.c
patch
|
blob
|
history
diff --git
a/rostests/tests/suspend/suspend.c
b/rostests/tests/suspend/suspend.c
index
93b9a83
..
25cc38b
100644
(file)
--- a/
rostests/tests/suspend/suspend.c
+++ b/
rostests/tests/suspend/suspend.c
@@
-62,7
+62,11
@@
main(int argc, char *argv[])
Sleep(100);x++;
if(x>100 && GetThreadContext(thread, &context))
{
+#if defined(_M_IX86)
printf("EIP: %lx\n", context.Eip);
+#elif defined(_M_AMD64)
+ printf("RIP: %p\n", context.Rip);
+#endif
printf("Calling resumethread ... \n");
ResumeThread(thread);
}