[SUSPEND]
[reactos.git] / rostests / tests / suspend / suspend.c
index a1f8a06..25cc38b 100644 (file)
@@ -11,7 +11,7 @@
 static volatile DWORD z;
 static volatile DWORD x=0;
 
-static NTSTATUS STDCALL
+static NTSTATUS WINAPI
 thread_1(PVOID Param)
 {
   DWORD y=0;
@@ -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);
     }