diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | win32/win32.c | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,7 @@ +Wed Oct 27 18:14:27 2010 NAKAMURA Usaku <[email protected]> + + * win32/win32.c (rb_w32_getppid): support Win64. + Wed Oct 27 15:07:19 2010 NAKAMURA Usaku <[email protected]> * thread_win32.c (w32_error): should get error no only once, because diff --git a/win32/win32.c b/win32/win32.c index 32b468f15c..d28050f3e6 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -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); |