On Thu Nov 9 04:51:29 2023 +0000, Alex Henrie wrote:
There should probably be a couple of tests that call this function and check for E_INVALIDARG. The tests would show that we have at least a vague idea of what the parameters do, and they would prove that calling the function with the cleanly-reverse-engineered signature does not crash. I suspect that DriverStoreFindDriverPackageW also returns E_INVALIDARG when *path_in or *path_size is 0, so I think it would be a good idea to check that too.
I added a bunch of tests. Please keep in mind that I can't reasonable test success, since I don't know how to make it succeed on Windows. That's also why I just made the "semi successful" tests `todo_wine`, since I can't distinguish between parameters that give 0x80070002 and success.