<div>Hi All,<br> <br>While testing wpa_supplicant (version 0.5.9) on Windows 2000, I got problems getting the supplicant to run correctly. It kept failing, complaining about WMI errors.<br>I've searched the mailing list, but found only 1 reference to approx. the same issue, but no solution.<br>
<br>So, I've been doing some debugging and it seems that when COM needs to do marshaling, the failures occurred. Further looking showed that some function calls<br>(such as IWbemServices_ExecQuery) passed L"" strings, while BSTR's needed to passed. Making a wrapper to convert WCHARs to BSTRs solved the problem and<br>
the supplicant is now working OK on Windows 2000. <br> <br>Potentially, the same situation could also occur on Windows XP, but for some reason marshaling was not triggered while performing my tests on XP.<br> <br>This being my first interaction with the list and having no idea about the regular way to post modified files, I've simply attached the diff for the ndis_events.c (from 0.5.9) file for you guys to have a look at. It seems that the 0.6.2 binaries suffers from the same issue, but I haven't looked at ndis_events.c from 0.6.2 yet<br>
<br>Kind regards,<br>Ridouan Agarad.</div>
<div> </div>