diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-27 09:15:02 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-27 09:15:02 +0000 |
commit | 1503e320d9ab33da37f79242fa30b780bd8835d5 (patch) | |
tree | 655fd1555378a84ac72374e0471fbf95f1904c24 | |
parent | f30e1877b2402f9a92c6c1db12fed05b88ebaba1 (diff) | |
download | ruby-1503e320d9ab33da37f79242fa30b780bd8835d5.tar.gz |
* 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
-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 <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 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); |