[Issue 13751] WaitForMultipleObjects's first argument not use on x86_64
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Nov 19 06:28:18 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13751
Mike Parker <aldacron at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |aldacron at gmail.com
Resolution|--- |INVALID
--- Comment #1 from Mike Parker <aldacron at gmail.com> ---
WaitForMultipleObjects is a Win32 API function. If you look at the
documentation for it [1], the first parameter is a DWORD, which is always
defined as a 32-bit integer on both 32-bit and 64-bit Windows. The prototype in
DRuntime cannot change this.
The problem here is with DFL, not DRuntime. The fix is to cast the .length
parameter to a DWORD when making the function call.
--
More information about the Digitalmars-d-bugs
mailing list