[erlang-bugs] erts_sys_ddll_call_init() anomaly

Bjorn Gustavsson bgustavsson@REDACTED
Fri Oct 17 10:15:23 CEST 2008


On Wed, Aug 13, 2008 at 9:32 PM, <hroe@REDACTED> wrote:

> Hi,
>
> the win32 function
>
> void *erts_sys_ddll_call_init(void *function) {
>    void *(*initfn)(TWinDynDriverCallbacks *) = function;
>    return (*initfn)(&wddc);
> }
>
> seems to be incorrect, it should have been:
>

On Windows, the DRIVER_INIT macro expands to a wrapper function which takes
aTWinDynDriverCallbacks * argument
(see erl_win_dyn_driver.h). Therefore the current code is correct.

/Bjorn

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20081017/e69f279d/attachment.htm>


More information about the erlang-bugs mailing list