[SmartcardServices-Changes] [97] trunk/SmartCardServices/src/PCSC/winscard_svc.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jan 11 05:43:25 PST 2010
Revision: 97
http://trac.macosforge.org/projects/smartcardservices/changeset/97
Author: ludovic.rousseau at gmail.com
Date: 2010-01-11 05:43:23 -0800 (Mon, 11 Jan 2010)
Log Message:
-----------
MSGFunctionDemarshall(): use a temporary variable for
SCARD_ESTABLISH_CONTEXT to avoid a cast of pointer
Modified Paths:
--------------
trunk/SmartCardServices/src/PCSC/winscard_svc.c
Modified: trunk/SmartCardServices/src/PCSC/winscard_svc.c
===================================================================
--- trunk/SmartCardServices/src/PCSC/winscard_svc.c 2010-01-11 13:31:59 UTC (rev 96)
+++ trunk/SmartCardServices/src/PCSC/winscard_svc.c 2010-01-11 13:43:23 UTC (rev 97)
@@ -342,8 +342,12 @@
case SCARD_ESTABLISH_CONTEXT:
esStr = ((establish_struct *) msgStruct->data);
ntohlEstablishStruct(esStr);
- esStr->rv = SCardEstablishContext(esStr->dwScope, 0, 0,
- (int32_t *)&esStr->phContext);
+ {
+ SCARDCONTEXT hContext;
+ hContext = esStr->phContext;
+ esStr->rv = SCardEstablishContext(esStr->dwScope, 0, 0, &hContext);
+ esStr->phContext = hContext;
+ }
if (esStr->rv == SCARD_S_SUCCESS)
esStr->rv =
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/smartcardservices-changes/attachments/20100111/796cc212/attachment.html>
More information about the SmartcardServices-Changes
mailing list