Created
December 5, 2013 18:27
-
-
Save sigma/7810636 to your computer and use it in GitHub Desktop.
#globalplatform #patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 7f1c8669c5991a60b6fada9b1187d2ee6d040223 Mon Sep 17 00:00:00 2001 | |
From: Yann Hodique <[email protected]> | |
Date: Thu, 5 Dec 2013 10:18:46 -0800 | |
Subject: [PATCH] compilation fixes | |
--- | |
globalplatform/src/connection.c | 2 +- | |
globalplatform/src/dyn_generic.h | 6 +++--- | |
2 files changed, 4 insertions(+), 4 deletions(-) | |
diff --git a/globalplatform/src/connection.c b/globalplatform/src/connection.c | |
index 67db512..a77c11a 100644 | |
--- a/globalplatform/src/connection.c | |
+++ b/globalplatform/src/connection.c | |
@@ -58,7 +58,7 @@ OPGP_ERROR_STATUS OPGP_establish_context(OPGP_CARD_CONTEXT *cardContext) { | |
// unload library | |
OPGP_release_context(cardContext); | |
- errorStatus = DYN_LoadLibrary(&cardContext->libraryHandle, (LPCTSTR)cardContext->libraryName, (LPCTSTR)cardContext->libraryVersion); | |
+ errorStatus = DYN_LoadLibrary(&cardContext->libraryHandle, (OPGP_CSTRING)cardContext->libraryName, (OPGP_CSTRING)cardContext->libraryVersion); | |
if (OPGP_ERROR_CHECK(errorStatus)) { | |
goto end; | |
} | |
diff --git a/globalplatform/src/dyn_generic.h b/globalplatform/src/dyn_generic.h | |
index a236945..6b6a8ac 100644 | |
--- a/globalplatform/src/dyn_generic.h | |
+++ b/globalplatform/src/dyn_generic.h | |
@@ -34,12 +34,12 @@ | |
#include "globalplatform/unicode.h" | |
#include "globalplatform/types.h" | |
-#include "globalplatform/error.h" | |
+#include "globalplatform/error.h" | |
#include "globalplatform/library.h" | |
//! \brief Loads a library. | |
OPGP_NO_API | |
-OPGP_ERROR_STATUS DYN_LoadLibrary(PVOID *libraryHandle, LPCTSTR libraryName, LPCTSTR version); | |
+OPGP_ERROR_STATUS DYN_LoadLibrary(PVOID *libraryHandle, OPGP_CSTRING libraryName, OPGP_CSTRING version); | |
//! \brief Unloads a library. | |
OPGP_NO_API | |
@@ -47,7 +47,7 @@ | |
//! \brief Gets the address of a function in a library. | |
OPGP_NO_API | |
-OPGP_ERROR_STATUS DYN_GetAddress(PVOID libraryHandle, PVOID *functionHandle, LPCTSTR functionName); | |
+OPGP_ERROR_STATUS DYN_GetAddress(PVOID libraryHandle, PVOID *functionHandle, OPGP_CSTRING functionName); | |
#ifdef __cplusplus | |
} | |
-- | |
1.8.5.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment