Re: libchipcard, PC/SC ifdhandlers and 64bit systems
Martin Preuss <[email protected]>
| Newsgroups | gmane.comp.lib.libchipcard.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi again, On Thursday 19 April 2007 09:56, Martin Preuss wrote: > Hi, > > On Thursday 19 April 2007 09:28, Henryk Plötz wrote: > [...] > > > (gdb) print sizeof(DWORD) > > $1 = 8 > > (gdb) print sizeof(unsigned int) > > $2 = 4 > > (gdb) > > [...] > > Nice work! I wouldn't have thought of checking the size of DWORD here. > Anyway, DWORD should be 4 bytes in any case, that's why I'm using types > from <inttypes.h> in my code instead of those windows-specific types. > > So the only place where the definition of DWORD can come from is the CCID > driver (or PC/SC). We should look there. [...] I found an obviously incorrect definition in PSCS/wintypes.h: typedef unsigned long DWORD; This is only correct on 32-bit archs, so maybe the error is here. I will ask on the PC/SC mailing list. Regards Martin -- "Things are only impossible until they're not" AqBanking - http://www.aqbanking.de/ LibChipcard - http://www.libchipcard.de/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/