http://bugs.winehq.org/show_bug.cgi?id=16420
--- Comment #20 from Juan Lang juan_lang@yahoo.com 2008-12-12 11:47:09 --- (In reply to comment #19)
When I say I wrote some tests, I mean I ran them on Windows. I wrote a test program that calls CryptQueryObject with exactly the same parameters that signcode.exe does, and it fails for me on Windows XP SP3.
What I didn't realize is that signcode.exe isn't calling CryptQueryObject directly, it's calling CertOpenStore. CertOpenStore is calling CryptQueryObject. Duh.
I'll have a patch for that shortly. It won't fix the bug yet, it'll just fix part 1.a. of the bug (see comment 16).