<div dir="ltr"><div><div dir="auto">I followed the ReactOS code and the documentation from Microsoft for the EnumDeviceDrivers function for this code.  I'm attaching a link to the stack trace from the program I'm trying to run.  It's the Creative E-MU Emulator X3.  The error is an invalid floating point for 32-bit code error.​<div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;font-family:arial;font-weight:bold;border:1px solid rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/1JLHO-J3lNgUVgvMK8M8BsxNnX8kTycqJ/view?usp=drive_web" target="_blank" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0;border:none"><img style="vertical-align: bottom; border: none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom">emux3_trace.log</span></a><img src="//ssl.gstatic.com/ui/v1/icons/common/x_8px.png" style="opacity: 0.55; cursor: pointer; float: right; position: relative; top: -1px; display: none;"></div>​</div></div><div dir="auto"><br></div><div dir="auto"><br></div></div><div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 12, 2018 at 6:08 AM Alexandre Julliard <<a href="mailto:julliard@winehq.org" target="_blank">julliard@winehq.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Anthony Lauzon <<a href="mailto:anthony.lauzon@gmail.com" target="_blank">anthony.lauzon@gmail.com</a>> writes:<br>
<br>
> +    status = NtQuerySystemInformation(SystemModuleInformation,<br>
> +                                      smi,<br>
> +                                      SystemInformationLength,<br>
> +                                      &ReturnLength);<br>
> +<br>
> +    ULONG i;<br>
> +    /* Try to find which module matches the base address given */<br>
> +    for (i = 0; i < smi->ModulesCount; ++i)<br>
> +    {<br>
> +        if (i >= cb/sizeof(LPVOID)) {<br>
> +            break;<br>
> +        }<br>
> +        image_base[i] = smi->Modules[i].ImageBaseAddress;<br>
> +    }<br>
<br>
This is enumerating the modules loaded in the current process, it<br>
doesn't have anything to do with device drivers. What problem are you<br>
trying to solve?<br>
<br>
-- <br>
Alexandre Julliard<br>
<a href="mailto:julliard@winehq.org" target="_blank">julliard@winehq.org</a><br>
</blockquote></div></div>