sync to trunk (44770)
[reactos.git] / reactos / dll / win32 / kernel32 / thread / thread.c
index 337934b..395a3a8 100644 (file)
@@ -179,38 +179,38 @@ CreateRemoteThread(HANDLE hProcess,
                                           &retLen);
         if (NT_SUCCESS(Status))
         {
-            /* Allocate the Activation Context Stack */
-            Status = RtlAllocateActivationContextStack(&ActivationContextStack);
+        /* Allocate the Activation Context Stack */
+        Status = RtlAllocateActivationContextStack(&ActivationContextStack);
         }
 
         if (NT_SUCCESS(Status))
         {
-            Teb = ThreadBasicInfo.TebBaseAddress;
+        Teb = ThreadBasicInfo.TebBaseAddress;
 
-            /* Save it */
-            Teb->ActivationContextStackPointer = ActivationContextStack;
+        /* Save it */
+        Teb->ActivationContextStackPointer = ActivationContextStack;
 #ifndef SXS_SUPPORT_FIXME
-            /* Query the Context */
-            Status = RtlQueryInformationActivationContext(1,
-                                                          0,
-                                                          NULL,
-                                                          ActivationContextBasicInformation,
-                                                          &ActivationCtxInfo,
-                                                          sizeof(ActivationCtxInfo),
+        /* Query the Context */
+        Status = RtlQueryInformationActivationContext(1,
+                                                      0,
+                                                      NULL,
+                                                      ActivationContextBasicInformation,
+                                                      &ActivationCtxInfo,
+                                                      sizeof(ActivationCtxInfo),
                                                           &retLen);
             if (NT_SUCCESS(Status))
             {
-                /* Does it need to be activated? */
-                if (!ActivationCtxInfo.hActCtx)
-                {
-                    /* Activate it */
+        /* Does it need to be activated? */
+        if (!ActivationCtxInfo.hActCtx)
+        {
+            /* Activate it */
                     Status = RtlActivateActivationContext(1,
-                                                          ActivationCtxInfo.hActCtx,
-                                                          &Cookie);
+                                                    ActivationCtxInfo.hActCtx,
+                                                    &Cookie);
                     if (!NT_SUCCESS(Status))
                         DPRINT1("RtlActivateActivationContext failed %x\n", Status);
-                }
-            }
+        }
+    }
             else
                 DPRINT1("RtlQueryInformationActivationContext failed %x\n", Status);
 #endif
@@ -673,6 +673,7 @@ GetThreadSelectorEntry(IN HANDLE hThread,
                        IN DWORD dwSelector,
                        OUT LPLDT_ENTRY lpSelectorEntry)
 {
+#ifdef _M_IX86
     DESCRIPTOR_TABLE_ENTRY DescriptionTableEntry;
     NTSTATUS Status;
 
@@ -693,6 +694,10 @@ GetThreadSelectorEntry(IN HANDLE hThread,
     /* Success, return the selector */
     *lpSelectorEntry = DescriptionTableEntry.Descriptor;
     return TRUE;
+#else
+    DPRINT1("Calling GetThreadSelectorEntry!\n");
+    return FALSE;
+#endif
 }
 
 /*