https://bugs.winehq.org/show_bug.cgi?id=45455
--- Comment #13 from Fabian Maurer dark.shadow4@web.de --- Created attachment 75404 --> https://bugs.winehq.org/attachment.cgi?id=75404 Test program 2
On x86, I tried
memset((char*)u7 + 4, 0, 100);
This smashes the stack, so probably not a struct with size 260 after all. Maybe just a pointer to DWORD.
On x64 the 4. parameter is 9, so probably not a pointer. could be flags.
Directly after calling DriverStoreFindDriverPackageW the application frees the setupapi library again and reports an error. We need to return a proper value.
Attaching a test program. This shows how to properly use it on Win64. Not sure why the second call doesn't work, but since we just need to implement the function as stub, this is not really a deal breaker.