Bug fix to the latest wine 0.9.2 wincrypt.h

Nicholas Niro nicholasniro at gmail.com
Thu Nov 24 00:50:09 CST 2005


I got the source from CVS and when I compiled I got the error :

In file included from ../../include/schannel.h:21,
                 from ../../include/schnlsp.h:21,
                 from ../../include/winldap.h:23,
                 from ber.c:26:
../../include/wincrypt.h:152: error: parse error before "FILETIME"
../../include/wincrypt.h:152: warning: no semicolon at end of struct or
union
../../include/wincrypt.h:153: warning: type defaults to `int' in declaration
of `NotAfter'
../../include/wincrypt.h:153: warning: data definition has no type or
storage class
../../include/wincrypt.h:160: error: parse error before '}' token
../../include/wincrypt.h:160: warning: type defaults to `int' in declaration
of `CERT_INFO'
../../include/wincrypt.h:160: warning: type defaults to `int' in declaration
of `PCERT_INFO'
../../include/wincrypt.h:160: warning: data definition has no type or
storage class
and so on ...

I found out that include/wincrypt.h  needs to include winbase.h (because it
holds the typedef of FILETIME) --  so to fix this issue, simply add this
line near the beginning of include/wincrypt.h :
#include <winbase.h>

after this is done, it fixes the problem.
Have a nice day,

Nik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20051124/25e034d5/attachment.htm


More information about the wine-patches mailing list