mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 17:05:45 +00:00
[SUSPEND]
Fix compilation for amd64 svn path=/trunk/; revision=47844
This commit is contained in:
parent
4f5e43f00e
commit
c3b4cac97a
1 changed files with 4 additions and 0 deletions
|
@ -62,7 +62,11 @@ main(int argc, char *argv[])
|
||||||
Sleep(100);x++;
|
Sleep(100);x++;
|
||||||
if(x>100 && GetThreadContext(thread, &context))
|
if(x>100 && GetThreadContext(thread, &context))
|
||||||
{
|
{
|
||||||
|
#if defined(_M_IX86)
|
||||||
printf("EIP: %lx\n", context.Eip);
|
printf("EIP: %lx\n", context.Eip);
|
||||||
|
#elif defined(_M_AMD64)
|
||||||
|
printf("RIP: %p\n", context.Rip);
|
||||||
|
#endif
|
||||||
printf("Calling resumethread ... \n");
|
printf("Calling resumethread ... \n");
|
||||||
ResumeThread(thread);
|
ResumeThread(thread);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue