mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (rb_w32_getppid): support Win64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f30e1877b2
commit
1503e320d9
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Oct 27 18:14:27 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_getppid): support Win64.
|
||||
|
||||
Wed Oct 27 15:07:19 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* thread_win32.c (w32_error): should get error no only once, because
|
||||
|
|
|
@ -4711,10 +4711,10 @@ rb_w32_getppid(void)
|
|||
struct {
|
||||
long ExitStatus;
|
||||
void* PebBaseAddress;
|
||||
ULONG AffinityMask;
|
||||
ULONG BasePriority;
|
||||
ULONG UniqueProcessId;
|
||||
ULONG ParentProcessId;
|
||||
uintptr_t AffinityMask;
|
||||
uintptr_t BasePriority;
|
||||
uintptr_t UniqueProcessId;
|
||||
uintptr_t ParentProcessId;
|
||||
} pbi;
|
||||
ULONG len;
|
||||
long ret = pNtQueryInformationProcess(GetCurrentProcess(), 0, &pbi, sizeof(pbi), &len);
|
||||
|
|
Loading…
Reference in a new issue