OSDN Git Service

Throughout, replace hMainProc with GetCurrentProcess/NtCurrentProcess
[pf3gnuchains/pf3gnuchains4x.git] / winsup / cygwin / init.cc
index 52e2df7..efdd775 100644 (file)
@@ -75,7 +75,7 @@ respawn_wow64_process ()
 
   /* Unfortunately there's no simpler way to retrieve the
      parent process in NT, as far as I know.  Hints welcome. */
-  ret = NtQueryInformationProcess (GetCurrentProcess (),
+  ret = NtQueryInformationProcess (NtCurrentProcess (),
                                   ProcessBasicInformation,
                                   &pbi, sizeof pbi, NULL);
   if (NT_SUCCESS (ret)