[SmartcardServices-Changes] [39] trunk/SmartCardServices/src/PCSC/dyn_macosx.c
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jul 30 04:24:30 PDT 2009
Revision: 39
http://trac.macosforge.org/projects/smartcardservices/changeset/39
Author: ludovic.rousseau at gmail.com
Date: 2009-07-30 04:24:27 -0700 (Thu, 30 Jul 2009)
Log Message:
-----------
reformat
Modified Paths:
--------------
trunk/SmartCardServices/src/PCSC/dyn_macosx.c
Modified: trunk/SmartCardServices/src/PCSC/dyn_macosx.c
===================================================================
--- trunk/SmartCardServices/src/PCSC/dyn_macosx.c 2009-07-30 11:00:25 UTC (rev 38)
+++ trunk/SmartCardServices/src/PCSC/dyn_macosx.c 2009-07-30 11:24:27 UTC (rev 39)
@@ -40,7 +40,7 @@
#include "debuglog.h"
/*
- * / Load a module (if needed)
+ * / Load a module (if needed)
*/
int DYN_LoadLibrary(void **pvLHandle, char *pcLibrary)
{
@@ -52,44 +52,29 @@
*pvLHandle = 0;
/*
- * @@@ kCFStringEncodingMacRoman might be wrong on non US systems.
+ * @@@ kCFStringEncodingMacRoman might be wrong on non US systems.
*/
bundlePath = CFStringCreateWithCString(NULL, pcLibrary,
kCFStringEncodingMacRoman);
if (bundlePath == NULL)
- {
return SCARD_E_NO_MEMORY;
- } else
- {
- }
-
bundleURL = CFURLCreateWithFileSystemPath(NULL, bundlePath,
kCFURLPOSIXPathStyle, TRUE);
CFRelease(bundlePath);
if (bundleURL == NULL)
- {
return SCARD_E_NO_MEMORY;
- } else
- {
- }
bundle = CFBundleCreate(NULL, bundleURL);
CFRelease(bundleURL);
if (bundle == NULL)
- {
return SCARD_F_UNKNOWN_ERROR;
- } else
- {
- }
if (!CFBundleLoadExecutable(bundle))
{
CFRelease(bundle);
return SCARD_F_UNKNOWN_ERROR;
- } else
- {
}
*pvLHandle = (void *) bundle;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/smartcardservices-changes/attachments/20090730/f952625e/attachment.html>
More information about the SmartcardServices-Changes
mailing list